Part Number Hot Search : 
M5267 D24F6 1N6150A HD641 GS3024A H224J Z5241B JANTXV1
Product Description
Full Text Search
 

To Download UPD784216AY Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  mos integrated circuit m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 16-bit single-chip microcontrollers document no. u14121ej2v0ds00 (2nd edition) date published august 2000 n cp(k) printed in japan data sheet description the m pd784214a, 784215a, 784216a, 784217a, and 784218a are products of the m pd784216a/784218a subseries in the 78k/iv series. besides a high-speed and high performance cpu, these controllers have rom, ram, i/o ports, 8-bit resolution a/d and d/a converters, timers, serial interfaces, a real-time output port, interrupt functions, and various other peripheral hardware. the m pd784214ay, 784215ay, 784216ay, 784217ay, and 784218ay are based on the m pd784216y/784218y subseries with the addition of a multimaster-supporting i 2 c bus interface. the m pd78f4218a and 78f4218ay, products with a flash memory instead of the internal rom of mask rom versions, and various development tools are also available. detailed function descriptions are provided in the following users manuals. be sure to read them before designing. m m m m pd784216a, 784216ay subseries users manual hardware: u13570e m m m m pd784218a, 784218ay subseries users manual hardware: u12970e 78k/iv series users manual instructions: u10905e features 78k/iv series supply voltage: v dd = 1.8 to 5.5 v standby function inherits peripheral functions of m pd78078, 78078y subseries halt/stop/idle mode minimum instruction execution time 160 ns in low-power consumption mode: halt/idle mode (with subsystem clock) (@f xx = 12.5 mhz operation with main system clock) clock division function 61 m s watch timer: 1 channel (@f xt = 32.768 khz operation with subsystem clock) watchdog timer: 1 channel i/o port: 86 pins clock output function timer/event counter: 16-bit timer/event counter 1 unit selectable from f xx , f xx /2, f xx /2 2 , f xx /2 3 , f xx /2 4 , f xx /2 5 , f xx /2 6 , f xx /2 7 , f xt 8-bit timer/event counter 6 units buzzer output function serial interface: 3 channels selectable from f xx /2 10 , f xx /2 11 , f xx /2 12 , f xx /2 13 uart/ioe (3-wire serial i/o): 2 channels a/d converter: 8-bit resolution 8 channels csi (3-wire serial i/o, i 2 c bus supporting multimaster note ): 2 channels d/a converter: 8-bit resolution 2 channels note m pd784216ay/784218ay subseries only applications cellular phones, phs, cordless telephones, cd-rom, av equipment unless otherwise specified, references in this document to the m m m m pd784218a, 784218ay refer to the m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, and 784218ay. the mark shows major revised points. 2000 the information in this document is subject to change without notice. before using this document, please confirm that this is the latest version. not all devices/types available in every country. please check with local nec representative for availability and additional information.
data sheet u14121ej2v0ds00 2 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay ordering information part number package internal rom (bytes) internal ram (bytes) m pd784214agc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 96 k 3,584 m pd784214agf- -3ba 100-pin plastic qfp (14 20 mm) 96 k 3,584 m pd784215agc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 128 k 5,120 m pd784215agf- -3ba 100-pin plastic qfp (14 20 mm) 128 k 5,120 m pd784216agc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 128 k 8,192 m pd784216agf- -3ba 100-pin plastic qfp (14 20 mm) 128 k 8,192 m pd784217agc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 192 k 12,800 m pd784217agf- -3ba 100-pin plastic qfp (14 20 mm) 192 k 12,800 m pd784218agc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 256 k 12,800 m pd784218agf- -3ba 100-pin plastic qfp (14 20 mm) 256 k 12,800 m pd784214aygc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 96 k 3,584 m pd784214aygf- -3ba 100-pin plastic qfp (14 20 mm) 96 k 3,584 m pd784215aygc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 128 k 5,120 m pd784215aygf- -3ba 100-pin plastic qfp (14 20 mm) 128 k 5,120 m pd784216aygc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 128 k 8,192 m pd784216aygf- -3ba 100-pin plastic qfp (14 20 mm) 128 k 8,192 m pd784217aygc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 192 k 12,800 m pd784217aygf- -3ba 100-pin plastic qfp (14 20 mm) 192 k 12,800 m pd784218aygc- -8eu 100-pin plastic lqfp (fine pitch) (14 14 mm) 256 k 12,800 m pd784218aygf- -3ba 100-pin plastic qfp (14 20 mm) 256 k 12,800 remark indicates rom code suffix.
data sheet u14121ej2v0ds00 3 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 78k/iv series lineup pd784026 pd784956a pd784908 pd784915 pd784928 pd784928y pd784046 pd784054 pd784216a pd784216ay pd784038 pd784038y pd784225y pd784225 pd784218ay pd784218a enhanced a/d converter, 16-bit timer, and power management enhanced internal memory capacity pin-compatible with the pd784026 supports i 2 c bus supports multimaster i 2 c bus 80-pin, rom correction added supports multimaster i 2 c bus enhanced internal memory capacity, rom correction added 100-pin, enhanced i/o and internal memory capacity on-chip 10-bit a/d converter for dc inverter control on-chip iebus tm controller software servo control on-chip analog circuit for vcrs enhanced timer supports multimaster i 2 c bus enhanced functions of the pd784915 standard models assp models supports multimaster i 2 c bus : products in mass-production : products under development m m pd784976a on-chip vfd controller/driver m m m m m m m m m m m m m m m m m pd784938a enhanced functions of the pd784908, enhanced internal memory capacity, rom correction added. m m pd784967 m enhanced functions of the pd784938a, enhanced i/o and internal memory capacity. m
data sheet u14121ej2v0ds00 4 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay overview of functions (1/2) part number item m pd784214a, m pd784214ay m pd784215a, m pd784215ay m pd784216a, m pd784216ay m pd784217a, m pd784217ay m pd784218a, m pd784218ay number of basic instructions (mnemonics) 113 general-purpose registers 8 bits 16 registers 8 banks, or 16 bits 8 registers 8 banks (memory mapping) minimum instruction execution time 160 ns/320 ns/640 ns/1,280 ns/2,560 ns (@f xx = 12.5 mhz operation with main system clock) 61 m s (@f xt = 32.768 khz operation with sub system clock) rom 96 kb 128 kb 192 kb 256 kb internal memory ram 3,584 bytes 5,120 bytes 8,192 bytes 12,800 bytes memory space 1 mb with program and data spaces combined total 86 cmos input 8 cmos i/o 72 i/o ports n-ch open-drain i/o 6 pins with pull-up resistor 70 led direct drive output 22 pins with additional functions note 1 middle-voltage pin 6 real-time output port 4 bits 2 or 8 bits 1 timer/event counter: timer counter 1 pulse output (16-bit) capture/compare register 2 ppg output square wave output one-shot pulse output timer/event counter 1: timer counter 1 pulse output (8-bit) compare register 1 pwm output square wave output timer/event counter 2: timer counter 1 pulse output (8-bit) compare register 1 pwm output square wave output timer/event counter 5: timer counter 1 pulse output (8-bit) compare register 1 pwm output square wave output timer/event counter 6: timer counter 1 pulse output (8-bit) compare register 1 pwm output square wave output timer/event counter 7: timer counter 1 pulse output (8-bit) compare register 1 pwm output square wave output timer/event counter timer/event counter 8: timer counter 1 pulse output (8-bit) compare register 1 pwm output square wave output serial interface uart/ioe (3-wire serial i/o): 2 channels (on-chip baud rate generator) csi (3-wire serial i/o, multimaster supporting i 2 c bus note 2 ): 1 channel a/d converter 8-bit resolution 8 channels d/a converter 8-bit resolution 2 channels notes 1. pins with additional functions are included with the i/o pins. 2. m pd784216ay/784218ay subseries only
data sheet u14121ej2v0ds00 5 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay overview of functions (2/2) part number item m pd784214a, m pd784214ay m pd784215a, m pd784215ay m pd784216a, m pd784216ay m pd784217a, m pd784217ay m pd784218a, m pd784218ay clock output selectable from f xx , f xx /2, f xx /2 2 , f xx /2 3 , f xx /2 4 , f xx /2 5 , f xx /2 6 , f xx /2 7 , f xt buzzer output selectable from f xx /2 10 , f xx /2 11 , f xx /2 12 , f xx /2 13 watch timer 1 channel watchdog timer 1 channel standby halt/stop/idle modes in low power consumption mode (with sub system clock): halt/idle m odes hardware sources 29 (internal: 20, external: 9) software sources brk instruction, brkcs instruction, operand error non-maskable internal: 1, external: 1 interrupt maskable internal: 19, external: 8 4 programmable priority levels 3 service modes: vectored interrupt/macro service/context switching supply voltage v dd = 1.8 to 5.5 v package 100-pin plastic lqfp (fine pitch) (14 14 mm) 100-pin plastic qfp (14 20 mm)
data sheet u14121ej2v0ds00 6 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay contents 1. differences among models in m m m m pd784216a, 784216ay/784218a, 784218ay subseries ....... 8 2. major differences from m m m m pd78078y subseries ................................................................ 9 3. pin configuration (top view)........................................................................................... ....... 10 4. block diagram ............................................................................................................ ................... 13 5. pin functions ............................................................................................................ ...................... 14 5.1 port pins ................................................................................................................ ...................... 14 5.2 non-port pins ............................................................................................................ .................. 16 5.3 pin i/o circuits and recommended connections of unused pins ........................................ 18 6. cpu architecture ......................................................................................................... ................ 22 6.1 memory space .............................................................................................................. ............... 22 6.2 cpu registers............................................................................................................. ................. 29 6.2.1 general-purpose registers ............................................................................................... ...............29 6.2.2 control registers....................................................................................................... .......................30 6.2.3 special function registers (sfrs)....................................................................................... .............31 7. peripheral hardware functions.......................................................................................... 3 6 7.1 ports ..................................................................................................................... ........................ 36 7.2 clock generator........................................................................................................... ................ 37 7.3 real-time output port ..................................................................................................... ........... 39 7.4 timer/event counter ....................................................................................................... ............ 40 7.5 a/d converter ............................................................................................................. ................. 42 7.6 d/a converter ............................................................................................................. ................. 43 7.7 serial interface.......................................................................................................... ................... 44 7.7.1 asynchronous serial interface/3-wire serial i/o (uart/ioe) ..........................................................45 7.7.2 clocked serial interface (csi) .......................................................................................... ...............47 7.8 clock output function..................................................................................................... ........... 49 7.9 buzzer output function.................................................................................................... .......... 49 7.10 edge detection function .................................................................................................. ........ 50 7.11 watch timer .............................................................................................................. ................. 50 7.12 watchdog timer ........................................................................................................... ............. 51 8. interrupt functions...................................................................................................... .............. 52 8.1 interrupt sources......................................................................................................... ................ 52 8.2 vectored interrupt ........................................................................................................ ............... 54 8.3 context switching ......................................................................................................... .............. 55 8.4 macro service ............................................................................................................. ................. 56 8.5 application example of macro service ..................................................................................... 5 7
data sheet u14121ej2v0ds00 7 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 9. local bus interface.................................................................................................... ............. 58 9.1 memory expansion .......................................................................................................... ........... 59 9.2 programmable wait ......................................................................................................... ........... 59 10. standby function ........................................................................................................ ............... 60 11. reset function .......................................................................................................... .................. 62 12. instruction set ......................................................................................................... .................. 63 13. electrical specifications ............................................................................................... ....... 68 14. package drawings ........................................................................................................ ............. 88 15. recommended soldering conditions................................................................................ 90 appendix a. development tools .............................................................................................. .. 92 appendix b. related documents.............................................................................................. .. 95
data sheet u14121ej2v0ds00 8 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 1. differences among models in m m m m pd784216a, 784216ay/784218a, 784218ay subseries the only difference among the m pd784214a, 784215a, 784216a, 784217a, and 784218a lies in the internal memory capacity. the m pd784214ay, 784215ay, 784216ay, 784217ay, and 784218ay are models with the addition of an i 2 c bus control function. the m pd78f4216a, 78f4216ay, 78f4218a, and 78f4218ay are provided with a 128 kb/256 kb flash memory instead of the mask rom of the above models. these differences are summarized in table 1-1. table 1-1. differences among models in m m m m pd784216a, 784216ay/784218a, 784218ay subseries part number item m pd784214a, m pd784214ay m pd784215a, m pd784215ay m pd784216a, m pd784216ay m pd784217a, m pd784217ay m pd784218a, m pd784218ay m pd78f4216a, m pd78f4216ay m pd78f4218a, m pd78f4218ay internal rom 96 kb (mask rom) 128 kb (mask rom) 192 kb (mask rom) 256 kb (mask rom) 128 kb (flash memory) 256 kb (flash memory) internal ram 3,584 bytes 5,120 bytes 8,192 bytes 12,800 bytes 5,120 bytes 12,800 bytes internal memory size switching register (ims) not provided provided note rom correction not provided provided not provided provided external access status function not provided provided not provided provided supply voltage v dd = 1.8 to 5.5 v v dd = 1.9 to 5.5 v electrical specifications recommended soldering conditions refer to the data sheet for each device. exa pin not provided provided not provided provided test pin provided not provided v pp pin not provided provided note the internal flash memory capacity and internal ram capacity can be changed using the internal memory size switching register (ims). caution there are differences in noise immunity and noise radiation between the flash memory and mask rom versions. when pre-producing an application set with the flash memory version and then mass-producing it with the mask rom version, be sure to conduct sufficient evaluations on the commercial samples (not engineering samples) of the mask rom version.
data sheet u14121ej2v0ds00 9 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 2. major differences from m m m m pd78078y subseries series name item m pd784216a, 784216ay/784218a, 784218ay subseries m pd78078y subseries cpu 16-bit cpu 8-bit cpu with main system clock 160 ns (@12.5 mhz operation) 400 ns (@5.0 mhz operation) minimum instruction execution time with subsystem clock 61 m s (@32.768 khz operation) 122 m s (@32.768 khz operation) memory space 1 mb 64 kb total 86 88 cmos input 8 2 cmos i/o 72 78 i/o ports n-ch open-drain i/o 6 8 pins with pull-up resistor 70 86 led direct drive output 22 16 pins with additional functions note 1 middle-voltage pin 6 8 timer/counter 16-bit timer/event counter 1 unit 8-bit timer/event counter 6 units 16-bit timer/event counter 1 unit 8-bit timer/event counter 4 units serial interface uart/ioe (3-wire serial i/o) 2 channels csi (3-wire serial i/o, multimaster supporting i 2 c bus note 2 ) 1 channel uart/ioe (3-wire serial i/o) 1 channel csi (3-wire serial i/o, 2-wire serial i/o, i 2 c bus) 1 channel csi (3-wire serial i/o, 3-wire serial i/o with automatic transmit/receive function) 1 channel nmi pin provided not provided macro service provided not provided context switching provided not provided interrupts programmable priority 4 levels not provided standby function halt/stop/idle modes in low power consumption mode: halt/idle modes halt/stop modes package 100-pin plastic lqfp (fine pitch) (14 14 mm) 100-pin plastic qfp (14 20 mm) 100-pin plastic lqfp (fine pitch) (14 14 mm) 100-pin plastic qfp (14 20 mm) 100-pin ceramic wqfn (14 20 mm) ( m pd78p078y only) notes 1. pins with additional functions are included with the i/o pins. 2. m pd784216ay/784218ay subseries only
data sheet u14121ej2v0ds00 10 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 3. pin configuration (top view) 100-pin plastic lqfp (fine pitch) (14 14 mm) m m m m pd784214agc- -8eu, m m m m pd784215agc- -8eu, m m m m pd784216agc- -8eu, m m m m pd784217agc- -8eu, m m m m pd784218agc- -8eu, m m m m pd784214aygc- -8eu, m m m m pd784215aygc- -8eu, m m m m pd784216aygc- -8eu, m m m m pd784217aygc- -8eu, m m m m pd784218aygc- -8eu 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 100 76 p120/rtp0 p121/rtp1 p122/rtp2 p123/rtp3 p124/rtp4 p125/rtp5 p126/rtp6 p127/rtp7 v dd x2 x1 v ss xt2 xt1 reset p00/intp0 p01/intp1 p02/intp2/nmi p03/intp3 p04/intp4 p05/intp5 p06/intp6 av dd note 2 av ref0 p10/ani0 p62/a18 p61/a17 p60/a16 v ss p57/a15 p56/a14 p55/a13 p54/a12 p53/a11 p52/a10 p51/a9 p50/a8 p47/ad7 p46/ad6 p45/ad5 p44/ad4 p43/ad3 p42/ad2 p41/ad1 p40/ad0 p87/a7 p86/a6 p85/a5 p84/a4 p83/a3 p95 p94 p93 p92 p91 p90 test note 1 p37/exa note 5 p36/ti01 p35/ti00 p34/ti2 p33/ti1 p32/to2 p31/to1 p30/to0 p103/ti8/to8 p102/ti7/to7 p101/ti6/to6 p100/ti5/to5 v dd p67/astb p66/wait p65/wr p64/rd p63/a19 p11/ani1 p12/ani2 p13/ani3 p14/ani4 p15/ani5 p16/ani6 p17/ani7 av ss note 3 p130/ano0 p131/ano1 av ref1 p70/rxd2/si2 p71/txd2/so2 p72/asck2/sck2 p20/rxd1/si1 p21/txd1/so1 p22/asck1/sck1 p23/pcl p24/buz p25/si0/sda0 note 4 p26/so0 p27/sck0/scl0 note 4 p80/a0 p81/a1 p82/a2 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 26 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 notes 1. connect the test pin to v ss directly or via a pull-down resistor. for the pull-down connection, it is recommended to use a resistor with a resistance ranging from 470 w to 10 k w . 2. connect the av dd pin to v dd . 3. connect the av ss pin to v ss . 4. the scl0 and sda0 pins are available in m pd784216ay/784218ay subseries products only. 5. the exa pin is available in m pd784218a, 784218ay subseries products only.
data sheet u14121ej2v0ds00 11 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 100-pin plastic qfp (14 20 mm) m m m m pd784214agf- -3ba, m m m m pd784215agf- -3ba, m m m m pd784216agf- -3ba, m m m m pd784217agf- -3ba, m m m m pd784218agf- -3ba, m m m m pd784214aygf- -3ba, m m m m pd784215aygf- -3ba, m m m m pd784216aygf- -3ba, m m m m pd784217aygf- -3ba, m m m m pd784218aygf- -3ba 100 v ss p57/a15 p56/a14 p55/a13 p54/a12 p53/a11 p52/a10 p51/a9 p50/a8 p47/ad7 p46/ad6 p45/ad5 p44/ad4 p43/ad3 p42/ad2 p41/ad1 p40/ad0 p87/a7 p86/a6 p85/a5 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 p84/a4 p83/a3 p82/a2 p81/a1 p80/a0 p27/sck0/scl0 note 4 p26/so0 p25/si0/sda0 note 4 p24/buz p23/pcl p22/asck1/sck1 p21/txd1/so1 p20/rxd1/si1 p72/asck2/sck2 p71/txd2/so2 p70/rxd2/si2 av ref1 p131/ano1 p130/ano0 av ss note 3 p17/ani7 p16/ani6 p15/ani5 p14/ani4 p13/ani3 p12/ani2 p11/ani1 p10/ani0 av ref0 av dd note 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 p60/a16 p61/a17 p62/a18 p63/a19 p64/rd p65/wr p66/wait p67/astb v dd p100/ti5/to5 p101/ti6/to6 p102/ti7/to7 p103/ti8/to8 p30/to0 p31/to1 p32/to2 p33/ti1 p34/ti2 p35/ti00 p36/ti01 p37/exa note 5 test note 1 p90 p91 p92 p93 p94 p95 p120/rtp0 p121/rtp1 p122/rtp2 p123/rtp3 p124/rtp4 p125/rtp5 p126/rtp6 p127/rtp7 v dd x2 x1 v ss xt2 xt1 reset p00/intp0 p01/intp1 p02/intp2/nmi p03/intp3 p04/intp4 p05/intp5 p06/intp6 31 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 notes 1. connect the test pin to v ss directly or via a pull-down resistor. for the pull-down connection, it is recommended to use a resistor with a resistance ranging from 470 w to 10 k w . 2. connect the av dd pin to v dd . 3. connect the av ss pin to v ss . 4. the scl0 and sda0 pins are available in m pd784216ay/784218ay subseries products only. 5. the exa pin is available in m pd784218a, 784218ay subseries products only.
data sheet u14121ej2v0ds00 12 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay a0 to a19: address bus p120 to p127: port 12 ad0 to ad7: address/data bus p130, p131: port 13 ani0 to ani7: analog input pcl: programmable clock ano0, ano1: analog output rd: read strobe asck1, asck2: asynchronous serial clock reset: reset astb: address strobe rtp0 to rtp7: real-time output port av dd : analog power supply rxd1, rxd2: receive data av ref0 , av ref1 : analog reference voltage sck0 to sck2: serial clock av ss : analog ground scl0 note 1 : serial clock buz: buzzer clock sda0 note 1 : serial data exa note 2 : external access status output si0 to si2: serial input intp0 to intp6: interrupt from peripherals so0 to so2: serial output nmi: non-maskable interrupt test: test p00 to p06: port 0 ti00, ti01, p10 to p17: port 1 ti1, ti2, ti5 to ti8: timer input p20 to p27: port 2 to0 to to2, to5 to to8: timer output p30 to p37: port 3 txd1, txd2: transmit data p40 to p47: port 4 v dd : power supply p50 to p57: port 5 v ss : ground p60 to p67: port 6 wait: wait p70 to p72: port 7 wr: write strobe p80 to p87: port 8 x1, x2: crystal (main system clock) p90 to p95: port 9 xt1, xt2: crystal (subsystem clock) p100 to p103: port 10 notes 1. the scl0 and sda0 pins are available in m pd784216ay/784218ay subseries products only. 2. the exa pin is available in m pd784218a, 784218ay subseries products only.
data sheet u14121ej2v0ds00 13 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 4. block diagram intp2/nmi intp0, intp1, intp3 to intp6 programmable interrupt controller real-time output port timer/event counter 7 (8 bits) timer/event counter 6 (8 bits) timer/event counter 5 (8 bits) timer/event counter 2 (8 bits) timer/event counter 1 (8 bits) timer/event counter (16 bits) watch timer timer/event counter 8 (8 bits) watchdog timer ti00 ti01 to0 ti1 to1 ti2 to2 ti5/to5 ti6/to6 ti7/to7 ti8/to8 nmi/intp2 rtp0 to rtp7 clock output control a/d converter av dd av ss pcl buz av ref0 ani0 to ani7 d/a converter ano0 av ss p03/intp3 av ref1 ano1 78k/iv cpu core rom ram baud-rate generator rxd1/si1 txd1/so1 asck1/sck1 rxd2/si2 txd2/so2 asck2/sck2 si0/sda0 so0 sck0/scl0 bus i/f uart/ioe1 rd astb wr wait a0 to a7 ad0 to ad7 a8 to a15 a16 to a19 port 1 p10 to p17 port 0 p00 to p06 port 2 p20 to p27 port 3 p30 to p37 port 4 p40 to p47 port 5 p50 to p57 port 6 p60 to p67 port 7 p70 to p72 port 8 p80 to p87 port 9 p90 to p95 port 10 p100 to p103 port 12 p120 to p127 port 13 p130, p131 buzzer output system control reset xt2 x1 xt1 x2 v ss v dd test clocked serial interface note 1 baud-rate generator uart/ioe2 exa note 2 notes 1. this function supports the i 2 c bus interface and is available in m pd784216ay/784218ay subseries products only. 2. the exa pin is available in m pd784218a, 784218ay subseries products only. remark the internal rom and ram capacities differ depending on the product.
data sheet u14121ej2v0ds00 14 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 5. pin functions 5.1 port pins (1/2) pin name i/o alternate function function p00 intp0 p01 intp1 p02 intp2/nmi p03 intp3 p04 intp4 p05 intp5 p06 i/o intp6 port 0 (p0): 7-bit i/o port input/output can be specified in 1-bit units. whether specifying input mode or output mode, use of an on-chip pull-up resistor can be specified in 1-bit units by means of software. p10 to p17 input ani0 to ani7 port 1 (p1): 8-bit input only port p20 rxd1/si1 p21 txd1/so1 p22 asck1/sck1 p23 pcl p24 buz p25 si0/sda0 note 1 p26 so0 p27 i/o sck0/scl0 note 1 port 2 (p2): 8-bit i/o port input/output can be specified in 1-bit units. whether specifying input mode or output mode, use of an on-chip pull-up resistor can be specified in 1-bit units by means of software. p30 to0 p31 to1 p32 to2 p33 ti1 p34 ti2 p35 ti00 p36 ti01 p37 i/o exa note 2 port 3 (p3): 8-bit i/o port input/output can be specified in 1-bit units. whether specifying input mode or output mode, use of an on-chip pull-up resistor can be specified in 1-bit units by means of software. p40 to p47 i/o ad0 to ad7 port 4 (p4): 8-bit i/o port input/output can be specified in 1-bit units. all pins set in input mode can be connected to on-chip pull-up resistors by means of software. leds can be driven directly. p50 to p57 i/o a8 to a15 port 5 (p5): 8-bit i/o port input/output can be specified in 1-bit units. all pins set in input mode can be connected to on-chip pull-up resistors by means of software. leds can be driven directly. notes 1. this function is available in m pd784216ay/784218ay subseries products only. 2. this function is available in m pd784218a, 784218ay subseries products only.
data sheet u14121ej2v0ds00 15 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 5.1 port pins (2/2) pin name i/o alternate function function p60 a16 p61 a17 p62 a18 p63 a19 p64 rd p65 wr p66 wait p67 i/o astb port 6 (p6): 8-bit i/o port input/output can be specified in 1-bit units. all pins set in input mode can be connected to on-chip pull-up resistors by means of software. p70 rxd2/si2 p71 txd2/so2 p72 i/o asck2/sck2 port 7 (p7): 3-bit i/o port input/output can be specified in 1-bit units. whether specifying input mode or output mode, use of an on-chip pull-up resistor can be specified in 1-bit units by means of software. p80 to p87 i/o a0 to a7 port 8 (p8): 8-bit i/o port input/output can be specified in 1-bit units. whether specifying input mode or output mode, use of an on-chip pull-up resistor can be specified in 1-bit units by means of software. the interrupt control flag (krif) is set to 1 when a falling edge is detected at a pin of this port. p90 to p95 i/o - port 9 (p9): n-ch open-drain middle-voltage i/o port 6-bit i/o port input/output can be specified in 1-bit units. leds can be driven directly. p100 ti5/to5 p101 ti6/to6 p102 ti7/to7 p103 i/o ti8/to8 port 10 (p10): 4-bit i/o port input/output can be specified in 1-bit units. whether specifying input mode or output mode, use of an on-chip pull-up resistor can be specified in 1-bit units by means of software. p120 to p127 i/o rtp0 to rtp7 port 12 (p12): 8-bit i/o port input/output can be specified in 1-bit units. whether specifying input mode or output mode, use of an on-chip pull-up resistor can be specified in 1-bit units by means of software. p130, p131 i/o ano0, ano1 port 13 (p13): 2-bit i/o port input/output can be specified in 1-bit units.
data sheet u14121ej2v0ds00 16 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 5.2 non-port pins (1/2) pin name i/o alternate function function ti00 p35 external count clock input to 16-bit timer counter ti01 p36 capture trigger signal input to capture/compare register 00 ti1 p33 external count clock input to 8-bit timer counter 1 ti2 p34 external count clock input to 8-bit timer counter 2 ti5 p100/to5 external count clock input to 8-bit timer counter 5 ti6 p101/to6 external count clock input to 8-bit timer counter 6 ti7 p102/to7 external count clock input to 8-bit timer counter 7 ti8 input p103/to8 external count clock input to 8-bit timer counter 8 to0 p30 16-bit timer output (shared by 14-bit pwm output) to1 p31 to2 p32 to5 p100/ti5 to6 p101/ti6 to7 p102/ti7 to8 output p103/ti8 8-bit timer output (shared by 8-bit pwm output) rxd1 p20/si1 serial data input (uart1) rxd2 input p70/si2 serial data input (uart2) txd1 p21/so1 serial data output (uart1) txd2 output p71/so2 serial data output (uart2) asck1 p22/sck1 baud rate clock input (uart1) asck2 input p72/sck2 baud rate clock input (uart2) si0 p25/sda0 note serial data input (3-wire serial i/o 0) si1 p20/rxd1 serial data input (3-wire serial i/o 1) si2 input p70/rxd2 serial data input (3-wire serial i/o 2) so0 p26 serial data output (3-wire serial i/o 0) so1 p21/txd1 serial data output (3-wire serial i/o 1) so2 output p71/txd2 serial data output (3-wire serial i/o 2) sda0 p25/si0 serial data input/output (i 2 c bus) sck0 p27/scl0 note serial clock input/output (3-wire serial i/o 0) sck1 p22/asck1 serial clock input/output (3-wire serial i/o 1) sck2 p72/asck2 serial clock input/output (3-wire serial i/o 2) scl0 i/o p27/sck0 serial clock input/output (i 2 c bus) nmi p02/intp2 non-maskable interrupt request input intp0 p00 intp1 p01 intp2 p02/nmi intp3 p03 intp4 p04 intp5 p05 intp6 input p06 external interrupt request input note this function is available in m pd784216ay/784218ay subseries products only.
data sheet u14121ej2v0ds00 17 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 5.2 non-port pins (2/2) pin name i/o alternate function function pcl output p23 clock output (for trimming main system clock and sub system clock) buz output p24 buzzer output rtp0 to rtp7 output p120 to p127 real-time output port that outputs data in synchronization with trigger ad0 to ad7 i/o p40 to p47 lower address/data bus for expanding memory externally a0 to a7 p80 to p87 lower address bus for expanding memory externally a8 to a15 p50 to p57 middle address bus for expanding memory externally a16 to a19 output p60 to p63 higher address bus for expanding memory externally rd p64 strobe signal output for reading from external memory wr output p65 strobe signal output for writing to external memory wait input p66 wait insertion at external memory access astb output p67 strobe output that externally latches address information output to ports 4 through 6 and 8 to access external memory exa note output p37 status signal output at external memory access reset input - system reset input x1 input x2 - - connecting crystal resonator for main system clock oscillation xt1 input xt2 - - connecting crystal resonator for sub system clock oscillation ani0 to ani7 input p10 to p17 a/d converter analog input ano0, ano1 output p130, p131 d/a converter analog output av ref0 a/d converter reference voltage input av ref1 d/a converter reference voltage input av dd a/d converter positive power supply. connect to v dd . av ss gnd for a/d converter and d/a converter. connect to v ss . v dd positive power supply v ss gnd test -- connect this pin to v ss directly or via a pull-down resistor. for the pull-down connection, it is recommended to use a resistor with a resistance ranging from 470 w to 10 k w (this pin is for ic test). note this function is available in m pd784218a, 784218ay subseries products only.
data sheet u14121ej2v0ds00 18 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 5.3 pin i/o circuits and recommended connections of unused pins the input/output circuit type of each pin and recommended connections of unused pins are shown in table 5-1. for each type of input/output circuit, refer to figure 5-1. table 5-1. types of pin input/output circuits and recommended connection of unused pins (1/2) pin name i/o circuit type i/o recommended connection of unused pins p00/intp0 p01/intp1 p02/intp2/nmi p03/intp3 to p06/intp6 8-n i/o input: independently connect to v ss via a resistor output: leave open p10/ani0 to p17/ani7 9 input connect to v ss or v dd p20/rxd1/si1 10-k p21/txd1/so1 10-l p22/asck1/sck1 10-k p23/pcl p24/buz 10-l p25/si0/sda0 note 1 10-k p26/so0 10-l p27/sck0/scl0 note 1 10-k p30/to0 to p32/to2 12-e p33/ti1, p34/ti2 8-n p35/ti00, p36/ti01 10-m p37/exa note 2 12-e p40/ad0 to p47/ad7 p50/a8 to p57/a15 p60/a16 to p63/a19 p64/rd p65/wr p66/wait p67/astb 5-a p70/rxd2/si2 8-n p71/txd2/so2 10-m p72/asck2/sck2 8-n p80/a0 to p87/a7 12-e p90 to p95 13-d p100/ti5/to5 p101/ti6/to6 p102/ti7/to7 p103/ti8/to8 8-n p120/rtp0 to p127/rtp7 12-e p130/ano0, p131/ano1 12-f i/o input: independently connect to v ss via a resistor output: leave open notes 1. this function is available in m pd784216ay/784218ay subseries products only. 2. this function is available in m pd784218a, 784218ay subseries products only.
data sheet u14121ej2v0ds00 19 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 5-1. types of pin input/output circuits and recommended connection of unused pins (2/2) pin name i/o circuit type i/o recommended connection of unused pins reset 2-g - xt1 input connect to v ss xt2 16 leave open av ref0 connect to v ss av ref1 av dd connect to v dd av ss connect to v ss test - - connect this pin to v ss directly or via a pull-down resistor. for the pull-down connection, it is recommended to use a resistor with a resistance ranging from 470 w to 10 k w . remark because the circuit type numbers are standardized among the 78k series products, they are not sequential in some models (i.e., some circuits are not provided).
data sheet u14121ej2v0ds00 20 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 5-1. types of pin i/o circuits (1/2) in pullup enable data output disable input enable v dd p-ch v dd p-ch in/out n-ch pullup enable data output disable v dd p-ch v dd p-ch in/out n-ch pullup enable data open drain output disable v dd p-ch v dd p-ch in/out n-ch pullup enable data open drain output disable output disable v dd p-ch v dd v ss p-ch in/out n-ch pullup enable data v dd p-ch v dd v ss p-ch in/out n-ch pullup enable data output disable input enable v dd p-ch v dd p-ch in/out n-ch p-ch n-ch in comparator + C p-ch n-ch input enable type 2-g type 5-a type 8-n type 9 (threshold voltage) analog output voltage type 12-e type 10-m type 10-l type 10-k schmitt-triggered input with hysteresis characteristics
data sheet u14121ej2v0ds00 21 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 5-1. types of pin i/o circuits (2/2) data output disable middle-voltage input buffer in/out n-ch p-ch v dd rd data analog output voltage type 12-f type 13-d type 16 output disable p-ch in/out v dd v ss v ss n-ch input enable p-ch n-ch p-ch feedback cut-off xt1 xt2
data sheet u14121ej2v0ds00 22 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 6. cpu architecture 6.1 memory space a memory space of 1 mb can be accessed. mapping of the internal data area (special function registers and internal ram) can be specified by the location instruction. the location instruction must always be executed after reset cancellation, and must not be used more than once. (1) when location 0h instruction is executed internal memory the internal data area and internal rom area are mapped as follows. part number internal data area internal rom area m pd784214a, m pd784214ay 0f100h to 0ffffh 00000h to 0f0ffh 10000h to 17fffh m pd784215a, m pd784215ay 0eb00h to 0ffffh 00000h to 0eaffh 10000h to 1ffffh m pd784216a, m pd784216ay 0df00h to 0ffffh 00000h to 0deffh 10000h to 1ffffh m pd784217a, m pd784217ay 00000h to 0ccffh 10000h to 2ffffh m pd784218a, m pd784218ay 0cd00h to 0ffffh 00000h to 0ccffh 10000h to 3ffffh caution the following areas that overlap the internal data area of the internal rom cannot be used when the location 0h instruction is executed. part number unusable area m pd784214a, m pd784214ay 0f100h to 0ffffh (3,840 bytes) m pd784215a, m pd784215ay 0eb00h to 0ffffh (5,376 bytes) m pd784216a, m pd784216ay 0df00h to 0ffffh (8,448 bytes) m pd784217a, m pd784217ay m pd784218a, m pd784218ay 0cd00h to 0ffffh (13,056 bytes) external memory the external memory is accessed in external memory expansion mode.
data sheet u14121ej2v0ds00 23 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (2) when location 0fh instruction is executed internal memory the internal data area and internal rom area are mapped as follows. part number internal data area internal rom area m pd784214a, m pd784214ay ff100h to fffffh 00000h to 17fffh m pd784215a, m pd784215ay feb00h to fffffh 00000h to 1ffffh m pd784216a, m pd784216ay fdf00h to fffffh 00000h to 1ffffh m pd784217a, m pd784217ay 00000h to 2ffffh m pd784218a, m pd784218ay fcd00h to fffffh 00000h to 3ffffh external memory the external memory is accessed in external memory expansion mode.
data sheet u14121ej2v0ds00 24 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 6-1. memory map of m m m m pd784214a, 784214ay internal rom (61,696 bytes) (256 bytes) special function registers (sfr) internal ram (3,584 bytes) external memory note 1 (928 kb) note 1 general-purpose registers (128 bytes) macro service control word area (54 bytes) data area (512 bytes) program/data area (3,072 bytes) callf entry area (2 kb) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (3,584 bytes) external memory note 1 (980,736 bytes) (256 bytes) internal rom (96 kb) on execution of location 0h instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 1 f 0 h f f 0 f 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h b 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 1 f 0 h f f f 7 1 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h b 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 1 f f h 0 0 0 0 0 h f f f 7 1 h 0 0 0 8 1 h f f 0 f f h 0 0 1 f f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 note 2 h f f f 7 1 h 0 0 0 8 1 h f f f 7 1 internal rom (32,768 bytes) h f f 0 f 0 h 0 0 0 0 1 notes 1. accessed in external memory expansion mode. 2. this 3,840-byte area can be used as an internal rom only when the location 0fh instruction is executed. 3. on execution of location 0h instruction: 94,464 bytes, on execution of location 0fh instruction: 98,304 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area.
data sheet u14121ej2v0ds00 25 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 6-2. memory map of m m m m pd784215a, 784215ay internal rom (60,160 bytes) (256 bytes) special function registers (sfr) internal ram (5,120 bytes) external memory note 1 (896 kb) note 1 general-purpose registers (128 bytes) macro service control word area (54 bytes) data area (512 bytes) program/data area (4,608 bytes) callf entry area (2 kb) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (5,120 bytes) external memory note 1 (912,128 bytes) (256 bytes) internal rom (128 kb) on execution of location 0h instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 b e 0 h f f a e 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h b 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 b e 0 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h b 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 b e f h 0 0 0 0 0 h f f f f 1 h 0 0 0 0 2 h f f a e f h 0 0 b e f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 h f f f f 1 internal rom (65,536 bytes) h 0 0 0 0 2 h f f f f 1 h f f f f 1 note 2 h f f a e 0 h 0 0 0 0 1 notes 1. accessed in external memory expansion mode. 2. this 5,376-byte area can be used as an internal rom only when the location 0fh instruction is executed. 3. on execution of location 0h instruction: 125,696 bytes, on execution of location 0fh instruction: 131,072 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area.
data sheet u14121ej2v0ds00 26 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 6-3. memory map of m m m m pd784216a, 784216ay internal rom (57,088 bytes) (256 bytes) special function registers (sfr) internal ram (8,192 bytes) external memory note 1 (896 kb) note 1 general-purpose registers (128 bytes) macro service control word area (54 bytes) data area (512 bytes) program/data area (7,680 bytes) callf entry area (2 kb) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (8,192 bytes) external memory note 1 (909,056 bytes) (256 bytes) internal rom (128 kb) on execution of location 0h instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 f d 0 h f f e d 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h b 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 f d 0 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h b 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 f d f h 0 0 0 0 0 h f f f f 1 h 0 0 0 0 2 h f f e d f h 0 0 f d f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 h 0 0 0 0 2 h f f f f 1 h f f f f 1 internal rom (65,536 bytes) h f f f f 1 note 2 h f f e d 0 h 0 0 0 0 1 notes 1. accessed in external memory expansion mode. 2. this 8,448-byte area can be used as an internal rom only when the location 0fh instruction is executed. 3. on execution of location 0h instruction: 122,624 bytes, on execution of location 0fh instruction: 131,072 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area.
data sheet u14121ej2v0ds00 27 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 6- 4. memory map of m m m m pd784217a, 784217ay notes 1. accessed in external memory expansion mode. 2. this 13,056-byte area can be used as internal rom only when the location 0fh instruction is executed. 3. on execution of location 0h instruction: 183,552 bytes, on execution of location 0fh instruction: 196,608 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area. internal rom (52,480 bytes) (256 bytes) special function registers (sfr) internal ram (12,800 bytes) external memory note 1 (928 kb) note 1 general-purpose registers (128 bytes) macro service control word area (54 bytes) data area (512 bytes) program/data area (12,288 bytes) callf entry area (2 kb) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (12,800 bytes) external memory note 1 (838,912 bytes) (256 bytes) internal rom (192 kb) on execution of location 0h instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 d c 0 h f f c c 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h b 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 d c 0 h f f f f 2 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h b 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 d c f h 0 0 0 0 0 h f f f f 2 h 0 0 0 0 3 h f f c c f h 0 0 d c f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 note 2 h f f f 7 1 h 0 0 0 8 1 h f f f 7 1 internal rom (32,768 bytes) h f f 0 f 0 h 0 0 0 0 1
data sheet u14121ej2v0ds00 28 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 6-5. memory map of m m m m pd784218a, 784218ay notes 1. accessed in external memory expansion mode. 2. this 13,056-byte area can be used as an internal rom only when the location 0fh instruction is executed. 3. on execution of location 0h instruction: 249,088 bytes, on execution of location 0fh instruction: 262,144 bytes 4. base area and entry area for reset or interrupt. however, the internal ram area is not used as a reset entry area. internal rom (52,480 bytes) (256 bytes) special function registers (sfr) internal ram (12,800 bytes) external memory note 1 (768 kb) note 1 general-purpose registers (128 bytes) macro service control word area (54 bytes) data area (512 bytes) program/data area (12,288 bytes) callf entry area (2 kb) program/data area note 3 callt table area (64 bytes) vector table area (64 bytes) internal ram (12,800 bytes) external memory note 1 (773,376 bytes) (256 bytes) internal rom (256 kb) on execution of location 0h instruction special function registers (sfr) note 1 on execution of location 0fh instruction h f f f f f h 0 0 0 0 1 h f f f f 0 h f d f f 0 h 0 d f f 0 h 0 0 f f 0 h f f e f 0 h 0 0 d c 0 h f f c c 0 h 0 0 0 0 0 h f f e f 0 h 0 8 e f 0 h f 7 e f 0 h b 3 e f 0 h 0 0 d f 0 h f f c f 0 h 6 0 e f 0 h 0 0 d c 0 h 0 0 0 1 0 h f f f 0 0 h 0 0 8 0 0 h f f 7 0 0 h 0 8 0 0 0 h f 7 0 0 0 h 0 4 0 0 0 h f 3 0 0 0 h 0 0 0 0 0 h f f e f f h 0 8 e f f h f 7 e f f h b 3 e f f h 6 0 e f f h 0 0 d f f h f f c f f h 0 0 d c f h 0 0 0 0 0 h f f f f 3 h 0 0 0 0 4 h f f c c f h 0 0 d c f h f f f f f h f d f f f h 0 d f f f h 0 0 f f f h f f e f f note 4 note 4 h f f f f 3 internal rom (196,608 bytes) h 0 0 0 0 4 h f f f f 3 h f f f f 3 note 2 h f f c c 0 h 0 0 0 0 1
data sheet u14121ej2v0ds00 29 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 6.2 cpu registers 6.2.1 general-purpose registers sixteen 8-bit general-purpose registers are available. two 8-bit registers can also be used in pairs as a 16-bit register. of the 16-bit registers, four can be used in combination with an 8-bit register for address expansion as 24- bit address specification registers. eight banks of these register sets are available and can be selected by using software or the context switching function. the general-purpose registers except the v, u, t, and w registers for address expansion are mapped to the internal ram. figure 6-6. general-purpose register format caution registers r4, r5, r6, r7, rp2, and rp3 can be used as the x, a, c, b, ax, and bc registers, respectively, by setting the rss bit of the psw to 1. however, use this function only for recycling the program of the 78k/iii series. a (r1) b (r3) r5 r7 r9 r11 d (r13) h (r15) v u t w vvp (rg4) uup (rg5) tde (rg6) whl (rg7) x (r0) c (r2) r4 r6 r8 r10 e (r12) l (r14) ax (rp0) bc (rp1) rp2 rp3 vp (rp4) up (rp5) de (rp6) hl (rp7) names in parentheses indicate absolute names. 8 banks
data sheet u14121ej2v0ds00 30 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 6.2.2 control registers (1) program counter (pc) the program counter is a 20-bit register whose contents are automatically updated when the program is executed. figure 6-7. format of program counter (pc) (2) program status word (psw) this register holds the statuses of the cpu. its contents are automatically updated when the program is executed. figure 6-8. format of program status word (psw) note this flag is provided to maintain compatibility with the 78k/iii series. be sure to clear this flag to 0, except when the software for the 78k/iii series is used. (3) stack pointer (sp) this is a 24-bit pointer that holds the first address of the stack. be sure to write 0 to the higher 4 bits of this pointer. figure 6-9. format of stack pointer (sp) 19 0 pc 15 14 13 12 11 10 9 8 uf rbs2 rbs1 rbs0 C C C C pswh 76 54 3210 s z rss note ac ie p/v 0 cy pswl psw 23 0 sp 20 0 0 0 0
data sheet u14121ej2v0ds00 31 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 6.2.3 special function registers (sfrs) the special function registers, such as the mode registers and control registers of the internal peripheral hardware, are registers to which special functions are assigned. these registers are mapped to the 256-byte space of addresses 0ff00h to 0ffffh note . note on execution of the location 0h instruction. fff00h to fffffh on execution of the location 0fh instruction. caution do not access an address in this area to which no sfr is assigned. if such an address is accessed by mistake, the m m m m pd784218a may enter a deadlocked state. this deadlock state can be cleared only by inputting the reset signal. table 6-1 lists the special function registers (sfrs). the meanings of the symbols in this table are as follows. symbol ................................ symbol indicating an sfr. this symbol is reserved for nec's assembler (ra78k4). it can be used as an sfr variable by means of the #pragma sfr command in the c compiler (cc78k4). r/w ..................................... indicates whether the sfr is read-only, write-only, or read/write. r/w: read/write r: read-only w: write-only bit units for manipulation ..... bit units in which the value of the sfr can be manipulated. sfrs that can be manipulated in 16-bit units can be described as the operand sfrp of an instruction. to specify the address of this sfr, describe an even address. sfrs that can be manipulated in 1-bit units can be described as the operand of a bit manipulation instruction. after reset............................ indicates the status of the register when the reset signal has been input.
data sheet u14121ej2v0ds00 32 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 6-1. special function register (sfr) list (1/4) bit units for manipulation address note 1 special function register (sfr) name symbol r/w 1 bit 8 bits 16 bits after reset 0ff00h port 0 p0 r/w ??- 0ff01h port 1 p1 r ??- 0ff02h port 2 p2 ??- 0ff03h port 3 p3 ??- 0ff04h port 4 p4 ??- 0ff05h port 5 p5 ??- 0ff06h port 6 p6 ??- 0ff07h port 7 p7 ??- 0ff08h port 8 p8 ??- 0ff09h port 9 p9 ??- 0ff0ah port 10 p10 ??- 0ff0ch port 12 p12 ??- 0ff0dh port 13 p13 r/w ??- 00h note 2 0ff10h 0ff11h 16-bit timer counter tm0 r --? 0ff12h 0ff13h capture/compare register 00 (16-bit timer/event counter) cr00 --? 0ff14h 0ff15h capture/compare register 01 (16-bit timer/event counter) cr01 --? 0000h 0ff16h capture/compare control register 0 crc0 ??- 0ff18h 16-bit timer mode control register tmc0 ??- 0ff1ah 16-bit timer output control register toc0 ??- 0ff1ch prescaler mode register 0 prm0 ??- 00h 0ff20h port 0 mode register pm0 ??- 0ff22h port 2 mode register pm2 ??- 0ff23h port 3 mode register pm3 ??- 0ff24h port 4 mode register pm4 ??- 0ff25h port 5 mode register pm5 ??- 0ff26h port 6 mode register pm6 ??- 0ff27h port 7 mode register pm7 ??- 0ff28h port 8 mode register pm8 ??- 0ff29h port 9 mode register pm9 ??- 0ff2ah port 10 mode register pm10 ??- 0ff2ch port 12 mode register pm12 ??- 0ff2dh port 13 mode register pm13 r/w ??- ffh notes 1. when the location 0h instruction is executed. add "f0000h" to this value when the location 0fh instruction is executed. 2. because each port is initialized to input mode after reset, "00h" is not actually read. the output latch is initialized to "0".
data sheet u14121ej2v0ds00 33 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 6-1. special function register (sfr) list (2/4) bit units for manipulation address note special function register (sfr) name symbol r/w 1 bit 8 bits 16 bits after reset 0ff30h pull-up resistor option register 0 pu0 ??- 0ff32h pull-up resistor option register 2 pu2 ??- 0ff33h pull-up resistor option register 3 pu3 ??- 0ff37h pull-up resistor option register 7 pu7 ??- 0ff38h pull-up resistor option register 8 pu8 ??- 0ff3ah pull-up resistor option register 10 pu10 ??- 0ff3ch pull-up resistor option register 12 pu12 ??- 0ff40h clock output control register cks ??- 0ff42h port function control register pf2 ??- 0ff4eh pull-up resistor option register puo r/w ??- 00h 0ff50h 8-bit timer counter 1 tm1 -? 0ff51h 8-bit timer counter 2 tm2 tm1w r -? ? 0ff52h compare register 10 (8-bit timer/event counter 1) cr10 -? 0ff53h compare register 20 (8-bit timer/event counter 2) cr20 cr1w -? ? 0ff54h 8-bit timer mode control register 1 tmc1 ?? 0ff55h 8-bit timer mode control register 2 tmc2 tmc1w ?? ? 0ff56h prescaler mode register 1 prm1 ?? 0ff57h prescaler mode register 2 prm2 prm1w r/w ?? ? 0ff60h 8-bit timer counter 5 tm5 -? 0ff61h 8-bit timer counter 6 tm6 tm5w -? ? 0ff62h 8-bit timer counter 7 tm7 -? 0ff63h 8-bit timer counter 8 tm8 tm7w r -? ? 0ff64h compare register 50 (8-bit timer/event counter 5) cr50 -? 0ff65h compare register 60 (8-bit timer/event counter 6) cr60 cr5w -? ? 0ff66h compare register 70 (8-bit timer/event counter 7) cr70 -? 0ff67h compare register 80 (8-bit timer/event counter 8) cr80 cr7w -? ? 0ff68h 8-bit timer mode control register 5 tmc5 ?? 0ff69h 8-bit timer mode control register 6 tmc6 tmc5w ?? ? 0ff6ah 8-bit timer mode control register 7 tmc7 ?? 0ff6bh 8-bit timer mode control register 8 tmc8 tmc7w ?? ? 0ff6ch prescaler mode register 5 prm5 ?? 0ff6dh prescaler mode register 6 prm6 prm5w ?? ? 0ff6eh prescaler mode register 7 prm7 ?? 0ff6fh prescaler mode register 8 prm8 prm7w ?? ? 0000h 0ff70h asynchronous serial interface mode register 1 asim1 ??- 0ff71h asynchronous serial interface mode register 2 asim2 r/w ??- 0ff72h asynchronous serial interface status register 1 asis1 ??- 0ff73h asynchronous serial interface status register 2 asis2 r ??- 00h note when the location 0h instruction is executed. add "f0000h" to this value when the location 0fh instruction is executed.
data sheet u14121ej2v0ds00 34 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 6-1. special function register (sfr) list (3/4) bit units for manipulation address note 1 special function register (sfr) name symbol r/w 1 bit 8 bits 16 bits after reset transmit shift register 1 txs1 w -?- 0ff74h receive buffer register 1 rxb1 r -?- transmit shift register 2 txs2 w -?- 0ff75h receive buffer register 2 rxb2 r -?- ffh 0ff76h baud rate generator control register 1 brgc1 ??- 0ff77h baud rate generator control register 2 brgc2 ??- 0ff7ah oscillation mode select register cc ??- 0ff80h a/d converter mode register adm ??- 0ff81h a/d converter input select register adis r/w ??- 00h 0ff83h a/d conversion result register adcr r -?- undefined 0ff84h d/a conversion value setting register 0 dacs0 ??- 0ff85h d/a conversion value setting register 1 dacs1 ??- 0ff86h d/a converter mode register 0 dam0 ??- 0ff87h d/a converter mode register 1 dam1 ??- 0ff8ch external bus type select register ebts ??- 0ff90h serial operation mode register 0 csim0 ??- 0ff91h serial operation mode register 1 csim1 ??- 0ff92h serial operation mode register 2 csim2 ??- 0ff94h serial i/o shift register 0 sio0 -?- 0ff95h serial i/o shift register 1 sio1 -?- 0ff96h serial i/o shift register 2 sio2 -?- 0ff98h real-time output buffer register l rtbl -?- 0ff99h real-time output buffer register h rtbh -?- 0ff9ah real-time output port mode register rtpm ??- 0ff9bh real-time output port control register rtpc ??- 0ff9ch watch timer mode control register wtm ??- 0ffa0h external interrupt rising edge enable register egp0 ??- 0ffa2h external interrupt falling edge enable register egn0 r/w ??- 0ffa8h in-service priority register ispr r ??- 0ffa9h interrupt select control register snmi ??- 00h 0ffaah interrupt mode control register imc ??- 80h 0ffach interrupt mask flag register 0l mk0l ?? 0ffadh interrupt mask flag register 0h mk0h mk0 ?? ? 0ffaeh interrupt mask flag register 1l mk1l ?? 0ffafh interrupt mask flag register 1h mk1h mk1 ?? ? ffffh 0ffb0h i 2 c bus control register note 2 iicc0 ??- 0ffb2h prescaler mode register for serial clock sprm0 ??- 0ffb4h slave address register sva0 r/w ??- 00h notes 1. when the location 0h instruction is executed. add "f0000h" to this value when the location 0fh instruction is executed. 2. m pd784216ay/784218ay subseries only
data sheet u14121ej2v0ds00 35 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 6-1. special function register (sfr) list (4/4) bit units for manipulation address note 1 special function register (sfr) name symbol r/w 1 bit 8 bits 16 bits after reset 0ffb6h i 2 c bus status register note 2 iics0 r ??- 0ffb8h serial shift register iic0 ??- 00h 0ffc0h standby control register stbc -?- 30h 0ffc2h watchdog timer mode register wdm -?- 00h 0ffc4h memory expansion mode register mm ??- 20h 0ffc7h programmable wait control register 1 pwc1 r/w ??- aah 0ffceh clock status register pcs r ??- 32h 0ffcfh oscillation stabilization time specification register osts ??- 00h 0ffd0h to 0ffdfh external sfr area - ??- - 0ffe0h interrupt control register (intwdtm) wdtic ??- 0ffe1h interrupt control register (intp0) pic0 ??- 0ffe2h interrupt control register (intp1) pic1 ??- 0ffe3h interrupt control register (intp2) pic2 ??- 0ffe4h interrupt control register (intp3) pic3 ??- 0ffe5h interrupt control register (intp4) pic4 ??- 0ffe6h interrupt control register (intp5) pic5 ??- 0ffe7h interrupt control register (intp6) pic6 ??- 0ffe8h interrupt control register (intiic0/intcsi0) csiic0 ??- 0ffe9h interrupt control register (intser1) seric1 ??- 0ffeah interrupt control register (intsr1/intcsi1) sric1 ??- 0ffebh interrupt control register (intst1) stic1 ??- 0ffech interrupt control register (intser2) seric2 ??- 0ffedh interrupt control register (intsr2/intcsi2) sric2 ??- 0ffeeh interrupt control register (intst2) stic2 ??- 0ffefh interrupt control register (inttm3) tmic3 ??- 0fff0h interrupt control register (inttm00) tmic00 ??- 0fff1h interrupt control register (inttm01) tmic01 ??- 0fff2h interrupt control register (inttm1) tmic1 ??- 0fff3h interrupt control register (inttm2) tmic2 ??- 0fff4h interrupt control register (intad) adic ??- 0fff5h interrupt control register (inttm5) tmic5 ??- 0fff6h interrupt control register (inttm6) tmic6 ??- 0fff7h interrupt control register (inttm7) tmic7 ??- 0fff8h interrupt control register (inttm8) tmic8 ??- 0fff9h interrupt control register (intwt) wtic ??- 0fffah interrupt control register (intkr) kric r/w ??- 43h notes 1. when the location 0h instruction is executed. add "f0000h" to this value when the location 0fh instruction is executed. 2. m pd784216ay/784218ay subseries only
data sheet u14121ej2v0ds00 36 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7. peripheral hardware functions 7.1 ports the ports shown in figure 7-1 are provided to make various control operations possible. table 7-1 shows the function of each port. ports 0, 2 through 8, 10, and 12 can be connected to on-chip pull-up resistors by means of software when in input mode. figure 7-1. port configuration ? port 7 ? ? ? ? ? port 0 ? ? ? ? ? port 2 ? ? ? ? ? port 3 ? ? ? ? ? port 4 ? ? ? ? ? port 5 ? ? ? ? ? port 6 port 1 p70 p72 ? ? ? ? ? pprt 8 p80 p87 ? ? ? ? ? port 12 p120 p127 ? ? ? ? ? port 9 p90 p95 ? port 10 p100 p103 ? port 13 p130 p131 p00 p06 p10 to p17 p20 p27 p30 p37 p40 p47 p50 p57 p60 p67 8
data sheet u14121ej2v0ds00 37 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 7-1. port functions port name pin name function specification of pull-up resistor connection by software port 0 p00 to p06 input/output can be specified in 1-bit units can be specified in 1-bit units port 1 p10 to p17 input port - port 2 p20 to p27 input/output can be specified in 1-bit units can be specified in 1-bit units port 3 p30 to p37 input/output can be specified in 1-bit units can be specified in 1-bit units port 4 p40 to p47 input/output can be specified in 1-bit units leds can be driven directly can be specified in 1-port units port 5 p50 to p57 input/output can be specified in 1-bit units leds can be driven directly can be specified in 1-port units port 6 p60 to p67 input/output can be specified in 1-bit units can be specified in 1-port units port 7 p70 to p72 input/output can be specified in 1-bit units can be specified in 1-bit units port 8 p80 to p87 input/output can be specified in 1-bit units can be specified in 1-bit units port 9 p90 to p95 n-ch open-drain i/o port input/output can be specified in 1-bit units leds can be driven directly - port 10 p100 to p103 input/output can be specified in 1-bit units can be specified in 1-bit units port 12 p120 to p127 input/output can be specified in 1-bit units can be specified in 1-bit units port 13 p130, p131 input/output can be specified in 1-bit units - 7.2 clock generator an on-chip clock generator necessary for operation is provided. this clock generator has a frequency divider. if high-speed operation is not necessary, the internal operating frequency can be lowered by the frequency divider to reduce the current consumption. figure 7-2. block diagram of clock generator xt2 xt1 x1 x2 stop or bit 2 (mck) of the standby control register (stbc) is set to 1 when the subclock is selected as the cpu clock main system clock oscillator subsystem clock oscillator f xt watch timer, clock output function clock to peripheral hardware cpu clock (f cpu ) frequency divider idle controller prescaler prescaler stop, idle controller halt controller f x f x 2 f xx 2 f xx 2 2 f xx 2 3 f xx selector selector internal system clock (f clk )
data sheet u14121ej2v0ds00 38 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 7-3. example of using main system clock oscillator figure 7-4. example of using subsystem clock oscillator caution when using the main system clock and subsystem clock oscillator, wire as follows in the area enclosed by the broken lines in figures 7-3 and 7-4 to avoid an adverse effect from wiring capacitance. keep the wiring length as short as possible. do not cross the wiring with other signal lines. do not route the wiring near a signal line through which a high fluctuating current flows. always make the ground point of the oscillator capacitor the same potential as v ss . do not ground the capacitor to a ground pattern through which a high current flows. do not fetch signals from the oscillator. note that the subsystem clock oscillator has a low amplification factor to reduce the current consumption. external clock x2 x1 pd74hcu04 m v ss x2 x1 crystal resonator or ceramic resonator (1) crystal/ceramic oscillation (2) external clock 32.768 khz v ss xt2 xt1 xt2 xt1 external clock pd74hcu04 m (1) crystal oscillation (2) external clock
data sheet u14121ej2v0ds00 39 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.3 real-time output port the real-time output function is to transfer data set in advance to the real-time output buffer register to the output latch as soon as the timer interrupt or external interrupt has occurred in order to output the data to an external device. the pins that output the data to the external device constitute a port called a real-time output port. because the real-time output port can output signals without jitter, it is ideal for controlling a stepper motor. figure 7-5. block diagram of real-time output port internal bus rtpoe byte extr output trigger controller real-time output port control register (rtpc) real-time output port mode register (rtpm) real-time output port output latch rtp7 rtp0 high-order 4 bits of real-time output buffer register (rtbh) low-order 4 bits of real-time output buffer register (rtbl) intp2trg inttm1 inttm2 port 12 output latch p127 p120 p12n/rtpn pin output (n = 0 to 7) p127/ p120/ rtp7 rtp0 rtpoe bit
data sheet u14121ej2v0ds00 40 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.4 timer/event counter one unit of 16-bit timer/event counter and six 8-bit timer/event counters are provided. because a total of eight interrupt requests are supported, these timer/event counters can be used as eight timer/counters. table 7-2. operations of timers name item 16-bit timer/ event counter 8-bit timer/ event counter 1 8-bit timer/ event counter 2 8-bit timer/ event counter 5 8-bit timer/ event counter 6 8-bit timer/ event counter 7 8-bit timer/ event counter 8 8 bits -?????? count width 16 bits ???? interval timer 1 ch 1 ch 1 ch 1 ch 1 ch 1 ch 1 ch operation mode external event counter ??????? timer output 1 ch 1 ch 1 ch 1 ch 1 ch 1 ch 1 ch ppg output ?------ pwm output -?????? square wave output ??????? one-shot pulse output ?------ pulse width measurement 2 inputs ------ function number of interrupt requests 2 1 1 1 1 1 1
data sheet u14121ej2v0ds00 41 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 7-6. block diagram of timer/event counters 16-bit timer/event counter 8-bit timer/event counter 1, 5, 7 remarks 1. n = 1, 5, 7 2. ovf: overflow flag 8-bit timer/event counter 2, 6, 8 remarks 1. n = 2, 6, 8 2. ovf: overflow flag f xx /4 f xx /16 inttm3 ti01 ti00 edge detector edge detector 16-bit timer counter (tm0) 16-bit capture/compare register 00 (cr00) 16-bit capture/compare register 01 (cr01) 16 16 clear inttm00 inttm01 to0 selector selector output controller f xx /2 9 f xx /2 7 f xx /2 5 f xx /2 4 f xx /2 3 f xx /2 2 tin 8-bit timer counter n (tmn) 8-bit compare register n0 (crn0) 8 clear ovf inttmn + 1 inttmn ton edge detector output controller selector selector f xx /2 9 f xx /2 7 f xx /2 5 f xx /2 4 f xx /2 3 f xx /2 2 tin tmn C 1 8-bit timer counter n (tmn) 8-bit compare register n0 (crn0) 8 clear ovf inttmn ton edge detector output controller selector
data sheet u14121ej2v0ds00 42 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.5 a/d converter an a/d converter converts an analog signal input into a digital signal. this microcontroller is provided with an a/d converter with a resolution of 8 bits and eight channels (ani0 to ani7). this a/d converter is of successive approximation type and the result of conversion is stored in an 8-bit a/d conversion result register (adcr). the a/d converter can be started in the following two ways: hardware start conversion is started by trigger input (p03). software start conversion is started by setting the a/d converter mode register (adm). one analog input channel is selected from ani0 to ani7 for a/d conversion. when a/d conversion is started by means of hardware start, conversion is stopped after it has been completed. when conversion is started by means of software start, a/d conversion is repeatedly executed. each time conversion has been completed, an interrupt request (intad) is generated. figure 7-7. block diagram of a/d converter ani0 ani1 ani2 ani3 ani4 ani5 ani6 ani7 sample & hold circuit series resistor string voltage comparator successive approximation register (sar) a/d conversion result register (adcr) controller edge detector intp3/p03 intad intp3 av ss av ref0 av dd internal bus selector tap selector edge detector
data sheet u14121ej2v0ds00 43 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.6 d/a converter a d/a converter converts a digital signal input into an analog signal. this microcontroller is provided with a voltage output type d/a converter with a resolution of 8 bits and two channels. the conversion method is of r-2r resistor ladder type. d/a conversion is started by setting dace0 of d/a converter mode register 0 (dam0) and dace1 of d/a converter mode register 1 (dam1). the d/a converter operates in the following two modes: normal mode the converter outputs an analog voltage immediately after it has completed d/a conversion. real-time output mode the converter outputs an analog voltage in synchronization with an output trigger after it has completed d/a conversion. figure 7-8. block diagram of d/a converter av ref1 av ss dacs0 8 2r 2r r r 2r 2r selector ano0 dacs1 8 2r 2r r r 2r 2r selector ano1
data sheet u14121ej2v0ds00 44 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.7 serial interface three independent serial interface channels are provided. asynchronous serial interface (uart)/3-wire serial i/o (ioe) 2 clocked serial interface (csi) 1 3-wire serial i/o (ioe) i 2 c bus interface (i 2 c) ( m pd784216ay/784218ay subseries only) therefore, communication with an external system and local communication within the system can be simultaneously executed (refer to figure 7-9 ). figure 7-9. example of serial interface (a) uart + i 2 c (b) [uart] ? ? [uart] rs-232-c driver/receiver rxd1 txd1 rs-232-c driver/receiver port rxd2 txd2 port sda0 scl0 [i 2 c] v dd v dd sda scl sda scl lcd pd4711a m pd4711a m pd784218ay (master) m pd780078y (slave) m pd780308y (slave) m (b) uart + 3-wire serial i/o pd784218ay (master) m rs-232-c driver/receiver [uart] ? port rxd2 txd2 pd753106 (slave) m si so sck port int [3-wire serial i/o] note so1 si1 sck1 intpm port pd4711a m note handshake line
data sheet u14121ej2v0ds00 45 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.7.1 asynchronous serial interface/3-wire serial i/o (uart/ioe) two channels of serial interfaces for which an asynchronous serial interface mode and a 3-wire serial i/o mode can be selected are provided. (1) asynchronous serial interface mode in this mode, data of 1 byte following the start bit is transmitted or received. because an on-chip baud rate generator is provided, a wide range of baud rates can be set. moreover, the clock input to the asck pin can be divided to define a baud rate. when the baud rate generator is used, a baud rate conforming to the midi standard (31.25 kbps) can also be obtained. figure 7-10. block diagram in asynchronous serial interface mode internal bus 8 8 8 receive buffer register 1, 2 (rxb1, rxb2) receive shift register 1, 2 (rx1, rx2) transmit shift register 1, 2 (txs1, txs2) receive control parity check transmit control parity addition 5-bit counter 2 transmit/ receive clock generation rxd1, rxd2 txd1, txd2 asck1, asck2 baud rate generator intsr1, intsr2 intst1, intst2 selector f xx to f xx /2 5
data sheet u14121ej2v0ds00 46 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (2) 3-wire serial i/o mode in this mode, the master device starts transfer by making the serial clock active and transfers 1-byte data in synchronization with this clock. this mode is used to communicate with a device having a conventional clocked serial interface. basically, communication is established by using three lines: serial clocks (sck1 and sck2), serial data inputs (si1 and si2), and serial data outputs (so1 and so2). to connect two or more devices, a handshake line is necessary. figure 7-11. block diagram in 3-wire serial i/o mode internal bus 8 interrupt generator selector serial clock counter serial clock controller serial i/o shift register 1, 2 (sio1, sio2) si1, si2 so1, so2 sck1, sck2 intcsi1, intcsi2 to2 f xx /8 f xx /16
data sheet u14121ej2v0ds00 47 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.7.2 clocked serial interface (csi) in this mode, the master device starts transfer by making the serial clock active and transfers 1-byte data in synchronization with this clock. (1) 3-wire serial i/o mode this mode is to communicate with devices having a conventional clocked serial interface. basically, communication is established in this mode with three lines: serial clock (sck0) serial data input (si0), and serial data output (so0) lines. generally, a handshake line is necessary to check the reception status. figure 7-12. block diagram in 3-wire serial i/o mode si0 so0 sck0 intcsi0 to2 f xx /8 f xx /16 internal bus interrupt generator selector serial clock counter serial clock controller serial i/o shift register 0 (sio0) 8
data sheet u14121ej2v0ds00 48 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (2) i 2 c bus (inter ic) bus mode (supporting multimaster) ( m m m m pd784216ay/784218ay subseries only) this mode is for communication with devices conforming to the i 2 c bus format. this mode is for transferring 8-bit data between two or more devices by using two lines: serial clock (scl0) and serial data bus (sda0) lines. during transmission, a start condition, data, and stop condition can be output onto the serial data bus. during reception, these data are automatically detected by hardware. figure 7-13. block diagram of i 2 c bus mode internal bus direction controller slave address register (sva0) 8 8 8 sda0 scl0 serial i/o shift register 0 (sio0) output latch wake-up controller start condition/acknowledge detector stop condition detector serial clock counter serial clock controller acknowledge generator interrupt generator selector intiic0 to2/18 to to2/68 f xx /24 to f xx /178
data sheet u14121ej2v0ds00 49 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.8 clock output function clocks of the following frequencies can be output as clock output. 97.7 khz/195 khz/391 khz/781 khz/1.56 mhz/3.13 mhz/6.25 mhz/12.5 mhz (@12.5 mhz operation with main system clock) 32.768 khz (@32.768 khz operation with subsystem clock) figure 7-14. block diagram of clock output function 7.9 buzzer output function clocks of the following frequencies can be output as buzzer output. 1.5 khz/3.1 khz/6.1 khz/12.2 khz (@12.5 mhz operation with main system clock) figure 7-15. block diagram of buzzer output function f xx f xx /2 f xx /2 2 f xx /2 3 f xx /2 4 f xx /2 5 f xx /2 6 f xx /2 7 f xt synchronization circuit output controller pcl selector f xx /2 10 f xx /2 11 f xx /2 12 f xx /2 13 output controller buz selector
data sheet u14121ej2v0ds00 50 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.10 edge detection function the interrupt input pins (intp0, intp1, nmi/intp2, intp3 to intp6) are used not only to input interrupt requests but also to input trigger signals to the internal hardware units. because these pins operate at an edge of the input signal, they have a function to detect an edge. moreover, a noise elimination function is also provided to prevent erroneous detection due to noise. pin name detectable edge noise elimination nmi by analog delay intp0 to intp6 either or both of rising and falling edges - 7.11 watch timer the watch timer has the following functions: watch timer interval timer the watch timer and interval timer functions can be used at the same time. (1) watch timer the watch timer sets the wtif flag of the interrupt control register (wtic) at time intervals of 0.5 seconds by using the 32.768 khz subsystem clock. (2) interval timer the interval timer generates an interrupt request (inttm3) at predetermined time intervals. figure 7-16. block diagram of watch timer f xx /2 7 prescaler f xt f w 2 4 f w 2 5 f w 2 6 f w 2 7 f w 2 8 f w f w 2 9 5-bit counter f w 2 5 f w 2 14 intwt inttm3 to 16-bit timer/counter selector selector selector selector
data sheet u14121ej2v0ds00 51 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 7.12 watchdog timer a watchdog timer is provided to detect a cpu runaway. this watchdog timer generates a non-maskable or maskable interrupt unless it is cleared by software within a specified interval time. once enabled to operate, the watchdog timer cannot be stopped by software. whether the interrupt by the watchdog timer or the interrupt input from the nmi pin takes precedence can be specified. figure 7-17. block diagram of watchdog timer note write + to bit 7 (run) of the watchdog timer (wdm) remark f clk : internal system clock (f xx to f xx /8) f clk /2 21 f clk /2 20 f clk /2 19 f clk /2 17 f clk intwdt halt idle stop run note timer selector
data sheet u14121ej2v0ds00 52 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 8. interrupt functions the three types of interrupt request servicing shown in table 8-1 can be selected by program. table 8-1. servicing of interrupt request servicing mode entity of servicing servicing contents of pc and psw vectored interrupt branches and executes servicing routine (servicing is arbitrary) saves to and restores from stack context switching software automatically switches register bank, branches and executes servicing routine (servicing is arbitrary) saves to or restores from fixed area in register bank macro service firmware executes data transfer between memory and i/o (servicing is fixed) retained 8.1 interrupt sources table 8-2 shows the interrupt sources available. as shown, interrupts are generated by 29 types of sources, execution of the brk instruction, brkcs instruction, or an operand error. the priority of interrupt servicing can be set to four levels, so that nesting can be controlled during interrupt servicing and so that which of the two or more interrupts that simultaneously occur should be serviced first can be determined. when the macro service function is used, however, nesting always proceeds. the default priority is the priority (fixed) of the service that is performed if two or more interrupt requests, having the same priority, are simultaneously generated (refer to table 8-2 ). table 8-2. interrupt sources (1/2) source type default priority name trigger internal/ external macro service brk instruction instruction execution brkcs instruction instruction execution software - operand error if result of exclusive or between operands byte and byte is not ffh when mov stbc, #byte instruction, mov wdm, #byte instruction, or location instruction is executed -- nmi pin input edge detection external non-maskable - intwdt overflow of watchdog timer internal - 0 (highest) intwdtm overflow of watchdog timer internal 1intp0 2intp1 3intp2 4intp3 5intp4 6intp5 7intp6 pin input edge detection external intiic0 end of i 2 c bus transfer by csi0 8 intcsi0 end of 3-wire transfer by csi0 maskable 9 intser1 occurrence of uart reception error in asi1 internal ?
data sheet u14121ej2v0ds00 53 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 8-2. interrupt sources (2/2) source type default priority name trigger internal/ external macro service intsr1 end of uart reception by asi1 10 intcsi1 end of 3-wire transfer by csi1 11 intst1 end of uart transmission by asi1 12 intser2 occurrence of uart reception error in asi2 intsr2 end of uart reception by asi2 13 intcsi2 end of 3-wire transfer by csi2 14 intst2 end of uart transmission by asi2 15 inttm3 reference time interval signal from watch timer 16 inttm00 signal indicating match between 16-bit timer counter and capture/compare register (cr00) 17 inttm01 signal indicating match between 16-bit timer counter and capture/compare register (cr01) 18 inttm1 occurrence of match signal of 8-bit timer/event counter 1 19 inttm2 occurrence of match signal of 8-bit timer/event counter 2 20 intad end of conversion by a/d converter 21 inttm5 occurrence of match signal of 8-bit timer/event counter 5 22 inttm6 occurrence of match signal of 8-bit timer/event counter 6 23 inttm7 occurrence of match signal of 8-bit timer/event counter 7 24 inttm8 occurrence of match signal of 8-bit timer/event counter 8 25 intwt overflow of watch timer internal maskable 26 (lowest) intkr detection of falling edge of port 8 external ? remarks 1. asi: asynchronous serial interface csi: clocked serial interface 2. there are two interrupt sources for the watchdog timer: non-maskable interrupts (intwdt) and maskable interrupts (intwdtm). either one (but not both) should be selected for actual use.
data sheet u14121ej2v0ds00 54 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 8.2 vectored interrupt execution branches to a servicing routine by using the memory contents of a vector table address corresponding to the interrupt source as the address of the branch destination. so that the cpu performs interrupt servicing, the following operations are performed: on branching: saves the status of the cpu (contents of pc and psw) to stack on returning: restores the status of the cpu (contents of pc and psw) from stack to return to the main routine from an interrupt service routine, the reti instruction is used. the branch destination address is in a range of 0 to ffffh. table 8-3. vector table address interrupt source vector table address interrupt source vector table address brk instruction 003eh intst1 001ch trap0 (operand error) 003ch intser2 001eh nmi 0002h insr2 intwdt (non-maskable) 0004h intcsi2 0020h intwdtm (maskable) 0006h intst2 0022h intp0 0008h inttm3 0024h intp1 000ah inttm00 0026h intp2 000ch inttm01 0028h intp3 000eh inttm1 002ah intp4 0010h inttm2 002ch intp5 0012h intad 002eh intp6 0014h inttm5 0030h intiic0 inttm6 0032h intcsi0 0016h inttm7 0034h intser1 0018h inttm8 0036h intsr1 intwt 0038h intcsi1 001ah intkr 003ah
data sheet u14121ej2v0ds00 55 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 8.3 context switching when an interrupt request is generated or when the brkcs instruction is executed, a predetermined register bank is selected by hardware. context switching is a function that branches execution to a vector address stored in advance in the register bank, while at the same time stacking the current contents of the program counter (pc) and program status word (psw) to the register bank. the branch address is in a range of 0 to ffffh. figure 8-1. context switching operation when interrupt request is generated register bank n (n = 0 to 7) 0000b <7> transfer pc19-16 pc15-0 <6> exchange <5> save <2> save temporary register <1> save psw v u t w a b r5 r7 d h x c r4 r6 e l vp up <3> switching of register bank (rbs0 to rbs2 ? n) register bank (0 to 7) (bits 8 to 11 of temporary register) <4> rss ? 0 ie ? 0
data sheet u14121ej2v0ds00 56 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 8.4 macro service this function is to transfer data between memory and a special function register (sfr) without intervention by the cpu. a macro service controller accesses the memory and sfr in the same transfer cycle and directly transfers data without loading it. because this function does not save or restore the status of the cpu, or load data, data can be transferred at high speeds. figure 8-2. macro service cpu memory sfr macro service controller read write write read internal bus
data sheet u14121ej2v0ds00 57 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 8.5 application example of macro service (1) serial interface transmission each time macro service requests intst1 and intst2 are generated, the next transmit data is transferred from memory to txs1 and txs2. when data n (last byte) has been transferred to txs1 and txs2 (when the transmit data storage buffer has become empty), vectored interrupt requests intst1 and intst2 are generated. (2) serial interface reception each time macro service requests intsr1 and intsr2 are generated, the receive data is transferred from rxb1 and rxb2 to memory. when data n (last byte) has been transferred to memory (when the receive data storage buffer has become full), vectored interrupt requests intsr1 and intsr2 are generated. transmit data storage buffer (memory) data n data n C 1 data 1 data 2 internal bus transmit shift register txs1, txs2 (sfr) transmit control txd1, txd2 intst1, intst2 receive data storage buffer (memory) data n data n C 1 data 1 data 2 internal bus receive shift register rxb1, rxb2 (sfr) receive control intsr1, intsr2 rxd1, rxd2 receive buffer register
data sheet u14121ej2v0ds00 58 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 9. local bus interface the local bus interface can connect an external memory or i/o (memory mapped i/o) and support a memory space of 1 mb (refer to figure 9-1 ). figure 9-1. example of local bus interface (a) multiplexed bus mode (b) separate bus mode m pd784218a rd wr a8 to a19 astb ad0 to ad7 v dd address latch le q0 to q7 d0 to d7 oe sram cs oe we i/o1 to i/o8 a0 to a19 data bus address bus v dd address bus sram data bus oe we a0 to a19 cs i/o1 to i/o8 m pd784218a rd wr a0 to a19 ad0 to ad7
data sheet u14121ej2v0ds00 59 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 9.1 memory expansion external program memory and data memory can be connected in two stages: 256 kb and 1 mb. to connect the external memory, ports 4 through 6 and port 8 are used. the external memory can be connected in the following two modes: multiplexed bus mode: the external memory is connected by using a time-division address/data bus. the number of ports used when the external memory is connected can be reduced in this mode. separate bus mode: the external memory is connected by using an address bus and data bus independent of each other. because an external latch circuit is not necessary, this mode is useful for reducing the number of components and mounting area on the printed wiring board. 9.2 programmable wait wait state(s) can be inserted to the memory space (00000h to fffffh) while the rd and wr signals are active. in addition, there is an address wait function that extends the active period of the astb signal to gain the address decode time.
data sheet u14121ej2v0ds00 60 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 10. standby function this function is to reduce the power consumption of the chip, and can be used in the following modes: halt mode: stops supply of the operating clock to the cpu. this mode is used in combination with the normal operation mode for intermittent operation to reduce the average power consumption. idle mode: stops the entire system except for the oscillator, which continues operating. the power consumption in this mode is close to that in the stop mode. however, the time required to restore the normal program operation from this mode is almost the same as that from the halt mode. stop mode: stops the main system clock and thereby stops all the internal operations of the chip. consequently, the power consumption is minimized with only leakage current flowing. low power consumption mode: the main system clock is stopped and the subsystem clock is used as the system clock. the cpu can operate on the subsystem clock to reduce the current consumption. low power consumption halt mode: this is a standby function in the low power consumption mode and stops the operation clock of the cpu, to reduce the power consumption of the entire system. low power consumption idle mode: this is a standby function in the low power consumption mode and stops the entire system except the oscillator, to reduce the power consumption of the entire system. these modes are programmable. the macro service can be started from the halt mode or low power consumption halt mode. after macro service processing is executed, the system returns to the halt mode again. the transition of the standby status is shown in figure 10-1.
data sheet u14121ej2v0ds00 61 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay figure 10-1. standby function state transitions notes 1. only unmasked interrupt requests 2. only unmasked intp0 to intp6, intwt, key return interrupt (p80 to p87) remark nmi is valid only for an external input. the watchdog timer cannot be used for the release of standby (halt mode/stop mode/idle mode). wait for stable oscillation normal operation (main system clock operation) macro service halt (standby) idle (standby) low power consumption mode (subsystem clock operation) low power consumption halt mode (standby) low power consumption idle mode (standby) stop (standby) reset input macro service request one-time processing ends macro service ends macro service request one-time processing ends interrupt request reset input halt set idle set reset input nmi, intp0 to intp6 input, intwt, key return interrupt note 2 nmi, intp0 to intp6 input, intwt, key return interrupt note 2 stop set low power consumption idle mode set reset input low power consumption mode set return to normal operation nmi, intp0 to intp6 input, intwt, key return interrupt note 2 low power consumption halt mode set reset input interrupt request note 1 interrupt request for masked interrupt interrupt request for masked interrupt interrupt request for masked interrupt interrupt request for masked interrupt interrupt request for masked interrupt reset input reset input macro service macro service request macro service request one-time processing ends macro service ends one-time processing ends
data sheet u14121ej2v0ds00 62 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 11. reset function when a low-level signal is input to the reset pin, the system is reset, and each hardware unit is initialized (reset). during the reset period, oscillation of the main system clock is unconditionally stopped. consequently, the current consumption of the entire system can be reduced. when the reset signal goes high, the reset status is cleared. and after the oscillation stabilization time (84.0 ms at 12.5 mhz operation) elapses, the contents of the reset vector table are set to the program counter (pc), execution branches to an address set to the pc, and program execution is started from that branch address. therefore, the program can be reset and started from any address. figure 11-1. oscillation of main system clock during reset period the reset input pin has an analog delay noise eliminator to prevent malfunctioning due to noise. figure 11-2. acknowledgement of reset signal oscillation is unconditionally stopped during reset period oscillation stabilization time main system clock oscillator f clk reset input analog delay analog delay analog delay oscillation stabilization time time until clock starts oscillating reset input internal reset signal internal clock
data sheet u14121ej2v0ds00 63 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 12. instruction set (1) 8-bit instructions (instructions in parentheses are combinations realized by describing a as r) mov, xch, add, addc, sub, subc, and, or, xor, cmp, mulu, divuw, inc, dec, ror, rol, rorc, rolc, shr, shl, ror4, rol4, dbnz, push, pop, movm, xchm, cmpme, cmpmne, cmpmnc, cmpmc, movbk, xchbk, cmpbke, cmpbkne, cmpbknc, cmpbkc table 12-1. instruction list by 8-bit addressing second operand first operand #byte a r r' saddr saddr' sfr !addr16 !!addr24 mem [saddrp] [%saddrg] r3 pswl pswh [whl+] [whl - ] n none note 2 a (mov) add note 1 (mov) (xch) (add) note 1 mov xch (add) note 1 (mov) note 6 (xch) note 6 (add) notes 1, 6 mov (xch) (add) note 1 (mov) (xch) add note 1 mov xch add note 1 mov (mov) (xch) (add) note 1 r mov add note 1 (mov) (xch) (add) note 1 mov xch add note 1 mov xch add note 1 mov xch add note 1 mov xch ror note 3 mulu divuw inc dec saddr mov add note 1 (mov) note 6 (add) note 1 mov add note 1 mov xch add note 1 inc dec dbnz sfr mov add note 1 mov (add) note 1 mov add note 1 push pop !addr16 !!addr24 mov (mov) add note 1 mov mem [saddrp] [%saddrg] mov add note 1 mem3 ror4 rol4 r3 pswl pswh mov mov b, c dbnz stbc, wdm mov [tde+] [tde - ] (mov) note 6 (add) note 1 movm note 4 movbk note 5 notes 1. the operands of addc, sub, subc, and, or, xor, and cmp are the same as that of add. 2. either the second operand is not used, or the second operand is not an operand address. 3. the operands of rol, rorc, rolc, shr, and shl are the same as that of ror. 4. the operands of xchm, cmpme, cmpmne, cmpmnc, and cmpmc are the same as that of movm. 5. the operands of xchbk, cmpbke, cmpbkne, cmpbknc, and cmpbkc are the same as that of movbk. 6. the code length of some instructions having saddr2 as saddr in this combination is short.
data sheet u14121ej2v0ds00 64 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (2) 16-bit instructions (instructions in parentheses are combinations realized by describing ax as rp) movw, xchw, addw, subw, cmpw, muluw, mulw, divux, incw, decw, shrw, shlw, push, pop, addwg, subwg, pushu, popu, movtblw, macw, macsw, sacw table 12-2. instruction list by 16-bit addressing second operand first operand #word ax rp rp' saddrp saddrp' sfrp !addr16 !!addr24 mem [saddrp] [%saddrg] [whl+] byte n none note 2 ax (movw) addw note 1 (movw) (xchw) (add) note 1 (movw) (xchw) (addw) note 1 (movw) note 3 (xchw) note 3 (addw) notes 1, 3 movw (xchw) (addw) note 1 (movw) xchw movw xchw (movw) (xchw) rp movw addw note 1 (movw) (xchw) (addw) note 1 movw xchw addw note 1 movw xchw addw note 1 movw xchw addw note 1 movw shrw shlw mulu note 4 incw decw saddrp movw addw note 1 (movw) note 3 (addw) note 1 movw addw note 1 movw xchw addw note 1 incw decw sfrp movw addw note 1 movw (addw) note 1 movw addw note 1 push pop !addr16 !!addr24 movw (movw) movw movtblw mem [saddrp] [%saddrg] movw psw push pop sp addwg subwg post push pop pushu popu [tde+] (movw) sacw byte macw macsw notes 1. the operands of subw and cmpw are the same as that of addw. 2. either the second operand is not used, or the second operand is not an operand address. 3. the code length of some instructions having saddrp2 as saddrp in this combination is short. 4. the operands of muluw and divux are the same as that of mulw.
data sheet u14121ej2v0ds00 65 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (3) 24-bit instructions (instructions in parentheses are combinations realized by describing whl as rg) movg, addg, subg, incg, decg, push, pop table 12-3. instruction list by 24-bit addressing second operand first operand #imm24 whl rg rg' saddrg !!addr24 mem1 [%saddrg] sp none note whl (movg) (addg) (subg) (movg) (addg) (subg) (movg) (addg) (subg) (movg) addg subg (movg) movg movg movg rg movg addg subg (movg) (addg) (subg) movg addg subg movg movg incg decg push pop saddrg (movg) movg !!addr24 (movg) movg mem1 movg [%saddrg] movg sp movg movg incg decg note either the second operand is not used, or the second operand is not an operand address.
data sheet u14121ej2v0ds00 66 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (4) bit manipulation instructions mov1, and1, or1, xor1, set1, clr1, not1, bt, bf, btclr, bfset table 12-4. instruction list by bit manipulation instruction addressing second operand first operand cy saddr.bit sfr.bit a.bit x.bit pswl.bit pswh.bit mem2.bit !addr16.bit !!addr24.bit /saddr.bit /sfr. bit /a.bit /x.bit /pswl.bit /pswh.bit /mem2.bit /!addr16.bit /!!addr24.bit none note cy mov1 and1 or1 xor1 and1 or1 not1 set1 clr1 saddr.bit sfr.bit a.bit x.bit pswl.bit pswh.bit mem2.bit !addr16.bit !!addr24.bit mov1 not1 set1 clr1 bf bt btclr bfset note either the second operand is not used, or the second operand is not an operand address.
data sheet u14121ej2v0ds00 67 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (5) call and return/branch instructions call, callf, callt, brk, ret, reti, retb, retcs, retcsb, brkcs, br, bnz, bne, bz, be, bnc, bnl, bc, bl, bnv, bpo, bv, bpe, bp, bn, blt, bge, ble, bgt, bnh, bh, bf, bt, btclr, bfset, dbnz table 12-5. instruction list by call and return/branch instruction addressing operand of instruction address $addr20 $!addr20 !addr16 !!addr20 rp rg [rp] [rg] !addr11 [addr5] rbn none basic instruction bc note br call br call br retcs retcsb call br call br call br call br call br callf callf brkcs brk ret reti retb compound instruction bf bt btclr bfset dbnz note the operands of bnz, bne, bz, be, bnc, bnl, bl, bnv, bpo, bv, bpe, bp, bn, blt, bge, ble, bgt, bnh, and bh are the same as that of bc. (6) other instructions adjba, adjbs, cvtbw, location, sel, not, ei, di, swrs
data sheet u14121ej2v0ds00 68 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 13. electrical specifications absolute maximum ratings (t a = 25 c) parameter symbol conditions ratings unit v dd - 0.3 to +6.5 v av dd - 0.3 to v dd + 0.3 v av ss - 0.3 to v ss + 0.3 v av ref0 a/d converter reference voltage input - 0.3 to v dd + 0.3 v supply voltage av ref1 d/a converter reference voltage input - 0.3 to v dd + 0.3 v v i1 other than p90 to p95 - 0.3 to v dd + 0.3 v input voltage v i2 p90 to p95 n-ch open drain - 0.3 to +12 v analog input voltage v an analog input pin av ss - 0.3 to av ref0 + 0.3 v output voltage v o - 0.3 to v dd + 0.3 v per pin 15 ma total of p2, p4 to p8 75 ma total of p0, p3, p9, p10, p12, p13 75 ma output current, low i ol total of all pins 100 ma per pin - 10 ma output current, high i oh total of all pins - 50 ma operating ambient temperature t a - 40 to +85 c storage temperature t stg - 65 to +150 c caution product quality may suffer if the absolute maximum rating is exceeded even momentarily for any parameter. that is, the absolute maximum ratings are rated values at which the product is on the verge of suffering physical damage, and therefore the product must be used under conditions that ensure that the absolute maximum ratings are not exceeded.
data sheet u14121ej2v0ds00 69 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay operating conditions operating ambient temperature (t a ): - 40 to +85 c power supply voltage and clock cycle time: see figure 13-1 power supply voltage with subsystem clock operation: v dd = 1.8 to 5.5 v figure 13-1. power supply voltage and clock cycle time (cpu clock frequency: f cpu ) capacitance (t a = 25 c, v dd = v ss = 0 v) parameter symbol conditions min. typ. max. unit other than port 9 15 pf input capacitance c i port 9 20 pf other than port 9 15 pf output capacitance c o port 9 20 pf other than port 9 15 pf i/o capacitance c io f = 1 mhz unmeasured pins returned to 0 v. port 9 20 pf 8,000 10,000 500 400 300 320 160 80 200 100 0 0123 1.8 2.7 4.5 5.5 supply voltage [v] 456 clock cycle time t cyk [ns] guaranteed operating range
data sheet u14121ej2v0ds00 70 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay main system clock oscillator characteristics (t a = - - - - 40 to +85 c) resonator recommended circuit parameter conditions min. typ. max. unit 4.5 v v dd 5.5 v 2 12.5 2.7 v v dd < 4.5 v 2 6.25 2.0 v v dd < 2.7 v 2 3.125 ceramic resonator or crystal resonator x2 x1 v ss oscillation frequency (f x ) 1.8 v v dd < 2.0 v 2 2 mhz 4.5 v v dd 5.5 v 2 12.5 2.7 v v dd < 4.5 v 2 6.25 2.0 v v dd < 2.7 v 2 3.125 x1 input frequency (f x ) 1.8 v v dd < 2.0 v 2 2 mhz x1 input high-/low- level width (t wxh , t wxl ) 15 250 ns 4.5 v v dd 5.5 v 0 5 2.7 v v dd < 4.5 v 0 10 2.0 v v dd < 2.7 v 0 20 external clock x2 x1 pd74hcu04 m x1 input rising/falling time (t xr , t xf ) 1.8 v v dd < 2.0 v 0 30 ns cautions 1. when using the main system clock oscillator, wire as follows in the area enclosed by the broken lines in the above figures to avoid an adverse effect from wiring capacitance. keep the wiring length as short as possible. do not cross the wiring with other signal lines. do not route the wiring near a signal line through which a high fluctuating current flows. always make the ground point of the oscillator capacitor the same potential as v ss . do not ground the capacitor to a ground pattern through which a high current flows. do not fetch signals from the oscillator. 2. when the main system clock is stopped and the system is operated by the subsystem clock, the subsystem clock should be switched back to the main system clock after the oscillation stabilization time is secured by the program. remark for the resonator selection and oscillator constant, users are required to either evaluate the oscillation themselves or apply to the resonator manufacturer for evaluation.
data sheet u14121ej2v0ds00 71 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay subsystem clock oscillator characteristics (t a = - - - - 40 to +85 c) resonator recommended circuit parameter conditions min. typ. max. unit oscillation frequency (f xt ) 32 32.768 35 khz 4.5 v v dd 5.5 v 1.2 2 crystal resonator v ss xt2 xt1 oscillation stabilization time note 1.8 v v dd < 4.5 v 10 s xt1 input frequency (f xt ) 32 35 khz external clock xt2 xt1 pd74hcu04 m xt1 input high-/low- level width (t xth , t xtl ) 14.3 15.6 m s note time required to stabilize oscillation after applying supply voltage (v dd ). cautions 1. when using the subsystem clock oscillator, wire as follows in the area enclosed by the broken lines in the above figures to avoid an adverse effect from wiring capacitance. keep the wiring length as short as possible. do not cross the wiring with other signal lines. do not route the wiring near a signal line through which a high fluctuating current flows. always make the ground point of the oscillator capacitor the same potential as v ss . do not ground the capacitor to a ground pattern through which a high current flows. do not fetch signals from the oscillator. 2. when the main system clock is stopped and the device is operating on the subsystem clock, wait until the oscillation stabilization time has been secured by the program before switching back to the main system clock. remark for the resonator selection and oscillator constant, users are required to either evaluate the oscillation themselves or apply to the resonator manufacturer for evaluation.
data sheet u14121ej2v0ds00 72 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay dc characteristics (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) (1/3) parameter symbol conditions min. typ. max. unit 2.2 v v dd 5.5 v 0 0.3v dd v il1 note 1 1.8 v v dd < 2.2 v 0 0.2v dd v 2.2 v v dd 5.5 v 0 0.2v dd v il2 p00 to p06, p20, p22, p33, p34, p70, p72, p100 to p103, reset 1.8 v v dd < 2.2 v 0 0.15v dd v 2.2 v v dd 5.5 v 0 0.3v dd v il3 p90 to p95 (n-ch open drain) 1.8 v v dd < 2.2 v 0 0.2v dd v 2.2 v v dd 5.5 v 0 0.3v dd v il4 p10 to p17, p130, p131 1.8 v v dd < 2.2 v 0 0.2v dd v 2.2 v v dd 5.5 v 0 0.2v dd v il5 x1, x2, xt1, xt2 1.8 v v dd < 2.2 v 0 0.1v dd v 2.2 v v dd 5.5 v 0 0.3v dd input voltage, low v il6 p25, p27 1.8 v v dd < 2.2 v 0 0.2v dd v 2.2 v v dd 5.5 v 0.7v dd v dd v ih1 note 1 1.8 v v dd < 2.2 v 0.8v dd v dd v 2.2 v v dd 5.5 v 0.8v dd v dd v ih2 p00 to p06, p20, p22, p33, p34, p70, p72, p100 to p103, reset 1.8 v v dd < 2.2 v 0.85v dd v dd v 2.2 v v dd 5.5 v 0.7v dd 12 v ih3 p90 to p95 (n-ch open drain) 1.8 v v dd < 2.2 v 0.8v dd v dd v 2.2 v v dd 5.5 v 0.7v dd v dd v ih4 p10 to p17, p130, p131 1.8 v v dd < 2.2 v 0.8v dd v dd v 2.2 v v dd 5.5 v 0.8v dd v dd v ih5 x1, x2, xt1, xt2 1.8 v v dd < 2.2 v 0.85v dd v dd v 2.2 v v dd 5.5 v 0.7v dd v dd input voltage, high v ih6 p25, p27 1.8 v v dd < 2.2 v 0.8v dd v dd v for pins other than p40 to p47, p50 to p57, p90 to p95 i ol = 1.6 ma note 1 4.5 v v dd 5.5 v 0.4 v p40 to p47, p50 to p57 i ol = 8 ma note 2 4.5 v v dd 5.5 v 1.0 v v ol1 p90 to p95 i ol = 15 ma note 2 4.5 v v dd 5.5 v 0.8 2.0 v output voltage, low v ol2 i ol = 400 m a note 2 0.5 v i oh = - 1 ma note 2 4.5 v v dd 5.5 v v dd - 1.0 v output voltage, high v oh1 i ol = - 100 m a note 2 v dd - 0.5 v i lil1 except x1, x2, xt1 , xt2 - 3 m a input leakage current, low i lil2 v in = 0 v x1, x2, xt1, xt2 - 20 m a i lih1 except x1, x2, xt1 , xt2 3 m a i lih2 v in = v dd x1, x2, xt1, xt2 20 m a input leakage current, high i lih3 v in = 12 v (n-ch open drain) p90 to p95 20 m a output leakage current, low i lol1 v out = 0 v - 3 m a output leakage current, high i loh1 v out = v dd 3 m a notes 1. p21, p23, p24, p26, p30 to p32, p35 to p37, p40 to p47, p50 to p57, p60 to p67, p71, p80 to p87, p120 to p127 2. per pin
data sheet u14121ej2v0ds00 73 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay dc characteristics (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) (2/3) (1) m m m m pd784214a, 784215a, 784216a, 784214ay, 784215ay, 784216ay parameter symbol conditions min. typ. max. unit f xx = 12.5 mhz, v dd = 5.0 v 10% 11 40 ma f xx = 6 mhz, v dd = 3.0 v 10% 3 17 ma i dd1 operation mode f xx = 2 mhz, v dd = 2.0 v 10% 1 8 ma f xx = 12.5 mhz, v dd = 5.0 v 10% 5 20 ma f xx = 6 mhz, v dd = 3.0 v 10% 2 8 ma i dd2 halt mode f xx = 2 mhz, v dd = 2.0 v 10% 0.3 3.5 ma f xx = 12.5 mhz, v dd = 5.0 v 10% 1 2.5 ma f xx = 6 mhz, v dd = 3.0 v 10% 0.4 1.3 ma i dd3 idle mode f xx = 2 mhz, v dd = 2.0 v 10% 0.2 0.9 ma f xx = 32 khz, v dd = 5.0 v 10% 80 200 m a f xx = 32 khz, v dd = 3.0 v 10% 60 110 m a i dd4 operation mode note f xx = 32 khz, v dd = 2.0 v 10% 30 100 m a f xx = 32 khz, v dd = 5.0 v 10% 60 160 m a f xx = 32 khz, v dd = 3.0 v 10% 20 80 m a i dd5 halt mode note f xx = 32 khz, v dd = 2.0 v 10% 10 70 m a f xx = 32 khz, v dd = 5.0 v 10% 50 150 m a f xx = 32 khz, v dd = 3.0 v 10% 15 70 m a supply current i dd6 idle mode note f xx = 32 khz, v dd = 2.0 v 10% 5 60 m a data retention voltage v dddr halt, idle modes 1.8 5.5 v v dd = 2.0 v 10% 2 10 m a data retention current i dddr stop mode v dd = 5.0 v 10% 10 50 m a pull-up resistor r l v in = 0 v 10 30 100 k w note when main system clock is stopped and subsystem clock is operating. remark unless otherwise specified, the characteristics of alternate-function pins are the same as those of port pins.
data sheet u14121ej2v0ds00 74 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay dc characteristics (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) (3/3) (2) m m m m pd784217a, 784218a, 784217ay, 784218ay parameter symbol conditions min. typ. max. unit f xx = 12.5 mhz, v dd = 5.0 v 10% 11 40 ma f xx = 6 mhz, v dd = 3.0 v 10% 4 17 ma i dd1 operation mode f xx = 2 mhz, v dd = 2.0 v 10% 1 8 ma f xx = 12.5 mhz, v dd = 5.0 v 10% 6 20 ma f xx = 6 mhz, v dd = 3.0 v 10% 2 8 ma i dd2 halt mode f xx = 2 mhz, v dd = 2.0 v 10% 0.4 3.5 ma f xx = 12.5 mhz, v dd = 5.0 v 10% 1 2.5 ma f xx = 6 mhz, v dd = 3.0 v 10% 0.4 1.3 ma i dd3 idle mode f xx = 2 mhz, v dd = 2.0 v 10% 0.2 0.9 ma f xx = 32 khz, v dd = 5.0 v 10% 80 200 m a f xx = 32 khz, v dd = 3.0 v 10% 60 110 m a i dd4 operation mode note f xx = 32 khz, v dd = 2.0 v 10% 30 100 m a f xx = 32 khz, v dd = 5.0 v 10% 60 160 m a f xx = 32 khz, v dd = 3.0 v 10% 20 80 m a i dd5 halt mode note f xx = 32 khz, v dd = 2.0 v 10% 10 70 m a f xx = 32 khz, v dd = 5.0 v 10% 50 150 m a f xx = 32 khz, v dd = 3.0 v 10% 15 70 m a supply current i dd6 idle mode note f xx = 32 khz, v dd = 2.0 v 10% 5 60 m a data retention voltage v dddr halt, idle modes 1.8 5.5 v v dd = 2.0 v 10% 2 10 m a data retention current i dddr stop mode v dd = 5.0 v 10% 10 50 m a pull-up resistor r l v in = 0 v 10 30 100 k w note when main system clock is stopped and subsystem clock is operating. remark unless otherwise specified, the characteristics of alternate-function pins are the same as those of port pins.
data sheet u14121ej2v0ds00 75 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay ac characteristics (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) (1) read/write operation (1/2) parameter symbol conditions min. typ. max. unit 4.5 v v dd 5.5 v 80 ns 2.7 v v dd < 4.5 v 160 ns 2.0 v v dd < 2.7 v 320 ns cycle time t cyk 1.8 v v dd < 2.0 v 500 ns v dd = 5.0 v 10% (0.5 + a)t - 20 ns v dd = 3.0 v 10% (0.5 + a)t - 40 ns address setup time (to astb )t sast v dd = 2.0 v 10% (0.5 + a)t - 80 ns v dd = 5.0 v 10% 0.5t - 19 ns v dd = 3.0 v 10% 0.5t - 24 ns address hold time (from astb )t hstla v dd = 2.0 v 10% 0.5t - 34 ns v dd = 5.0 v 10% (0.5 + a)t - 17 ns v dd = 3.0 v 10% (0.5 + a)t - 40 ns astb high-level width t wsth v dd = 2.0 v 10% (0.5 + a)t - 110 ns v dd = 5.0 v 10% 0.5t - 14 ns v dd = 3.0 v 10% 0.5t - 14 ns address hold time (from rd - )t hra v dd = 2.0 v 10% 0.5t - 14 ns v dd = 5.0 v 10% (1 + a)t - 24 ns v dd = 3.0 v 10% (1 + a)t - 35 ns delay time from address to rd t dar v dd = 2.0 v 10% (1 + a)t - 80 ns v dd = 5.0 v 10% 0 ns v dd = 3.0 v 10% 0 ns address float time (from rd )t far v dd = 2.0 v 10% 0 ns v dd = 5.0 v 10% (2.5 + a + n)t - 37 ns v dd = 3.0 v 10% (2.5 + a + n)t - 52 ns data input time from address t daid v dd = 2.0 v 10% (2.5 + a + n)t - 120 ns v dd = 5.0 v 10% (2 + n)t - 35 ns v dd = 3.0 v 10% (2 + n)t - 50 ns data input time from astb t dstid v dd = 2.0 v 10% (2 + n)t - 80 ns v dd = 5.0 v 10% (1.5 + n)t - 40 ns v dd = 3.0 v 10% (1.5 + n)t - 50 ns data input time from rd t drid v dd = 2.0 v 10% (1.5 + n)t - 90 ns v dd = 5.0 v 10% 0.5t - 9ns v dd = 3.0 v 10% 0.5t - 9ns delay time from astb to rd t dstr v dd = 2.0 v 10% 0.5t - 20 ns v dd = 5.0 v 10% 0 ns v dd = 3.0 v 10% 0 ns data hold time (from rd - )t hrid v dd = 2.0 v 10% 0 ns remark t: t cyk = 1/f xx (f xx : main system clock frequency) a: 1 (during address wait), otherwise, 0 n: number of waits (n 3 0)
data sheet u14121ej2v0ds00 76 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay ac characteristics (1) read/write operation (2/2) parameter symbol conditions min. typ. max. unit v dd = 5.0 v 10% 0.5t - 2ns v dd = 3.0 v 10% 0.5t - 12 ns address active time from rd - t dra v dd = 2.0 v 10% 0.5t - 35 ns v dd = 5.0 v 10% 0.5t - 9ns v dd = 3.0 v 10% 0.5t - 9ns delay time from rd - to astb - t drst v dd = 2.0 v 10% 0.5t - 40 ns v dd = 5.0 v 10% (1.5 + n)t - 25 ns v dd = 3.0 v 10% (1.5 + n)t - 30 ns rd low-level width t wrl v dd = 2.0 v 10% (1.5 + n)t - 25 ns v dd = 5.0 v 10% (1 + a)t - 24 ns v dd = 3.0 v 10% (1 + a)t - 34 ns delay time from address to wr t daw v dd = 2.0 v 10% (1 + a)t - 70 ns v dd = 5.0 v 10% 0.5t - 14 ns v dd = 3.0 v 10% 0.5t - 14 ns address hold time (from wr - )t hrd v dd = 2.0 v 10% 0.5t - 14 ns v dd = 5.0 v 10% 0.5t + 15 ns v dd = 3.0 v 10% 0.5t + 30 ns delay time from astb to data output t dstod v dd = 2.0 v 10% 0.5t + 240 ns v dd = 5.0 v 10% 0.5t - 30 ns v dd = 3.0 v 10% 0.5t - 30 ns delay time from wr to data output t dwod v dd = 2.0 v 10% 0.5t - 30 ns v dd = 5.0 v 10% 0.5t - 9ns v dd = 3.0 v 10% 0.5t - 9ns delay time from astb to wr t dstw v dd = 2.0 v 10% 0.5t - 20 ns v dd = 5.0 v 10% (1.5 + n)t - 20 ns v dd = 3.0 v 10% (1.5 + n)t - 25 ns data setup time (to wr - )t sodwr v dd = 2.0 v 10% (1.5 + n)t - 70 ns v dd = 5.0 v 10% 0.5t - 14 ns v dd = 3.0 v 10% 0.5t - 14 ns data hold time (from wr - )t hwod v dd = 2.0 v 10% 0.5t - 50 ns v dd = 5.0 v 10% 0.5t - 9ns v dd = 3.0 v 10% 0.5t - 9ns delay time from wr - to astb - t dwst v dd = 2.0 v 10% 0.5t - 30 ns v dd = 5.0 v 10% (1.5 + n)t - 25 ns v dd = 3.0 v 10% (1.5 + n)t - 30 ns wr low-level width t wwl v dd = 2.0 v 10% (1.5 + n)t - 30 ns remark t: t cyk = 1/f xx (f xx : main system clock frequency) a: 1 (during address wait), otherwise, 0 n: number of wait states (n 3 0)
data sheet u14121ej2v0ds00 77 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay ac characteristics (2) external wait timing parameter symbol conditions min. typ. max. unit v dd = 5.0 v 10% (2 + a)t - 40 ns v dd = 3.0 v 10% (2 + a)t - 60 ns input time from address to wait t dawt v dd = 2.0 v 10% (2 + a)t - 300 ns v dd = 5.0 v 10% 1.5t - 40 ns v dd = 3.0 v 10% 1.5t - 60 ns input time from astb to wait t dstwt v dd = 2.0 v 10% 1.5t - 260 ns v dd = 5.0 v 10% (0.5 + n)t + 5ns v dd = 3.0 v 10% (0.5 + n)t + 10 ns hold time from astb to wait t hstwt v dd = 2.0 v 10% (0.5 + n)t + 30 ns v dd = 5.0 v 10% (1.5 + n)t - 40 ns v dd = 3.0 v 10% (1.5 + n)t - 60 ns delay time from astb to wait - t dstwth v dd = 2.0 v 10% (1.5 + n)t - 90 ns v dd = 5.0 v 10% t - 40 ns v dd = 3.0 v 10% t - 60 ns input time from rd to wait t drwtl v dd = 2.0 v 10% t - 70 ns v dd = 5.0 v 10% nt + 5ns v dd = 3.0 v 10% nt + 10 ns hold time from rd to wait t hrwt v dd = 2.0 v 10% nt + 30 ns v dd = 5.0 v 10% (1 + n)t - 40 ns v dd = 3.0 v 10% (1 + n)t - 60 ns delay time from rd to wait - t drwth v dd = 2.0 v 10% (1 + n)t - 90 ns v dd = 5.0 v 10% 0.5t - 5ns v dd = 3.0 v 10% 0.5t - 10 ns data input time from wait - t dwtid v dd = 2.0 v 10% 0.5t - 30 ns v dd = 5.0 v 10% 0.5t ns v dd = 3.0 v 10% 0.5t ns delay time from wait - to rd - t dwtr v dd = 2.0 v 10% 0.5t + 5ns v dd = 5.0 v 10% 0.5t ns v dd = 3.0 v 10% 0.5t ns delay time from wait - to wr - t dwtw v dd = 2.0 v 10% 0.5t + 5ns v dd = 5.0 v 10% t - 40 ns v dd = 3.0 v 10% t - 60 ns input time from wr to wait t dwwtl v dd = 2.0 v 10% t - 90 ns v dd = 5.0 v 10% nt + 5ns v dd = 3.0 v 10% nt + 10 ns hold time from wr to wait t hwwt v dd = 2.0 v 10% nt + 30 ns v dd = 5.0 v 10% (1 + n)t - 40 ns v dd = 3.0 v 10% (1 + n)t - 60 ns delay time from wr to wait - t dwwth v dd = 2.0 v 10% (1 + n)t - 90 ns remark t: t cyk = 1/f xx (f xx : main system clock frequency) a: 1 (during address wait), otherwise, 0 n: number of wait states (n 3 0)
data sheet u14121ej2v0ds00 78 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay serial operation (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) (a) 3-wire serial i/o mode (sck: internal clock output) parameter symbol conditions min. typ. max. unit 2.7 v v dd 5.5 v 800 ns sck cycle time t kcy1 3,200 ns 2.7 v v dd 5.5 v 350 ns sck high-/low-level width t kh1 , t kl1 1,500 ns 2.7 v v dd 5.5 v 10 ns si setup time (to sck - )t sik1 30 ns si hold time (from sck - )t ksi1 40 ns so output delay time (from sck ) t kso1 30 ns (b) 3-wire serial i/o mode (sck: external clock input) parameter symbol conditions min. typ. max. unit 2.7 v v dd 5.5 v 800 ns sck cycle time t kcy2 3,200 ns 2.7 v v dd 5.5 v 400 ns sck high-/low-level width t kh2 t kl2 1,600 ns 2.7 v v dd 5.5 v 10 ns si setup time (to sck - )t sik2 30 ns si hold time (from sck - )t ksi2 40 ns so output delay time (from sck ) t kso2 30 ns (c) uart mode parameter symbol conditions min. typ. max. unit 4.5 v v dd 5.5 v 417 ns 2.7 v v dd < 4.5 v 833 ns asck cycle time t kcy3 1,667 ns 4.5 v v dd 5.5 v 208 ns 2.7 v v dd < 4.5 v 416 ns asck high-/low-level width t kh3 t kl3 833 ns
data sheet u14121ej2v0ds00 79 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (d) i 2 c bus mode standard mode high-speed mode parameter symbol min. max. min. max. unit scl0 clock frequency f clk 0 100 0 400 khz bus free time (between stop and start conditions) t buf 4.7 - 1.3 - m s hold time note1 t hd : sta 4.0 - 0.6 - m s low-level width of scl0 clock t low 4.7 - 1.3 - m s high-level width of scl0 clock t high 4.0 - 0.6 - m s setup time of start/restart conditions t su : sta 4.7 - 0.6 - m s when using cbus- compatible master 5.0 --- m s data hold time when using i 2 c bus t hd : dat 0 note 2 - 0 note 2 0.9 note 3 m s data setup time t su : dat 250 - 100 note 4 - ns rise time of sda0 and scl0 signals t r - 1,000 20 + 0.1cb note 5 300 ns fall time of sda0 and scl0 signals t f - 300 20 + 0.1cb note 5 300 ns setup time of stop condition t su : sto 4.0 - 0.6 - m s pulse width of spike restricted by input filter t sp -- 050ns load capacitance of each bus line cb - 400 - 400 pf notes 1. for the start condition, the first clock pulse is generated after the hold time. 2. to fill the undefined area of the scl0 falling edge, it is necessary for the device to provide an internal sda0 signal (on v ihmin. ) with at least 300 ns of hold time. 3. if the device does not extend the scl0 signal low-level hold time (t low ), only the maximum data hold time t hd : dat needs to be satisfied. 4. the high-speed mode i 2 c bus can be used in a standard mode i 2 c bus system. in this case, the conditions described below must be satisfied. if the device does not extend the scl0 signal low-level hold time t su : dat 3 250 ns if the device extends the scl0 signal low-level hold time be sure to transmit the data bit to the sda0 line before the scl0 line is released (t rmax. + t su : dat = 1,000 + 250 = 1,250 ns by standard mode i 2 c bus specification) 5. cb: total capacitance per bus line (unit: pf)
data sheet u14121ej2v0ds00 80 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay other operations (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) parameter symbol conditions min. typ. max. unit nmi high-/low-level width t wnil t wnih 10 m s intp input high-/low-level width t witl t with intp0 to intp6 100 ns reset high-/low-level width t wrsl t wrsh 10 m s clock output operation (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) parameter symbol conditions min. typ. max. unit pcl cycle time t cycl 4.5 v v dd 5.5 v, nt 80 31,250 ns pcl high-/low-level width t cll t clh 4.5 v v dd 5.5 v, 0.5t - 10 30 15,615 ns 4.5 v v dd 5.5 v 5 ns 2.7 v v dd < 4.5 v 10 ns pcl rise/fall time t clr t clf 1.8 v v dd < 2.7 v 20 ns remark t: t cyk = 1/f xx (f xx : main system clock frequency) n: divided frequency ratio set by software in the cpu when using the main system clock: n = 1, 2, 4, 8, 16, 32, 64, 128 when using the subsystem clock: n = 1
data sheet u14121ej2v0ds00 81 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay a/d converter characteristics (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) parameter symbol conditions min. typ. max. unit resolution 888bits 2.7 v v dd 5.5 v 2.2 v av ref0 v dd 1.2 %fsr overall error notes 1, 2 1.8 v v dd < 2.7 v 1.8 v av ref0 v dd 1.6 %fsr conversion time t conv 14 144 m s sampling time t samp 24/f xx m s analog input voltage v ian av ss av ref0 v reference voltage av ref0 1.8 av dd v resistance between av ref0 and av ss r avref0 when not a/d converting 40 k w notes 1. quantization error ( 1/2 lsb) is not included. 2. overall error is indicated as a ratio to the full-scale value. remark f xx : main system clock frequency d/a converter characteristics (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) parameter symbol conditions min. typ. max. unit resolution 888bits r = 10 m w , 2.0 v av ref1 v dd , 2.0 v v dd 5.5 v 0.6 %fsr overall error notes 1, 2 r = 10 m w , 1.8 v av ref1 v dd , 1.8 v v dd 2.0 v 1.2 %fsr 4.5 v av ref1 5.5 v 10 m s 2.7 v av ref1 < 4.5 v 15 m s settling time load conditions: c = 30 pf 1.8 v av ref1 < 2.7 v 20 m s output resistance r o dacs0, 1 = 55h 8 k w reference voltage av ref1 1.8 v dd v av ref1 current ai ref1 for only 1 channel 2.5 ma notes 1. quantization error ( 1/2 lsb) is not included. 2. overall error is indicated as a ratio to the full-scale value.
data sheet u14121ej2v0ds00 82 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay data retention characteristics (t a = - - - - 40 to +85 c, v dd = av dd = 1.8 to 5.5 v, v ss = av ss = 0 v) parameter symbol conditions min. typ. max. unit data retention voltage v dddr stop mode 1.8 5.5 v v dddr = 5.0 v 10% 10 50 m a data retention current i dddr v dddr = 2.0 v 10% 2 10 m a v dd rise time t rvd 200 m s v dd fall time t fvd 200 m s v dd hold time (from stop mode setting) t hvd 0ms stop release signal input time t drel 0ms crystal resonator 30 ms oscillation stabilization wait time t wait ceramic resonator 5 ms low-level input voltage v il 00.1v dddr v high-level input voltage v ih reset, p00/intp0 to p06/intp6 0.9v dddr v dddr v ac timing test points 0.8v dd or 1.8 v 0.8 v 0.8v dd or 1.8 v 0.8 v test points v dd - 1 v 0.45 v
data sheet u14121ej2v0ds00 83 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay timing waveforms (1) read operations remark the signal is output from pins a0 to a7 when p80 to p87 are unused. (clk) a8 to a19 (output) astb (output) rd (output) wait (input) ad0 to ad7 (input/output) t cyk higher address hi-z hi-z hi-z higher address a0 to a7 (output) lower address lower address data (input) lower address (output) lower address (output) t daid t hra t sast t wsth t dstr t drst t dar t drid t wrl t drwth t dstwt t dstwth t hstwt t hrwt t dawt t dwtr t hstla t far t dwtid t drwtl t hrid t dra t dstid
data sheet u14121ej2v0ds00 84 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (2) write operation remark the signal is output from pins a0 to a7 when p80 to p87 are unused. (clk) a8 to a19 (output) astb (output) wait (input) ad0 to ad7 (output) t cyk t daid t hwa t sast t wsth t dstw t dwst t daw t dwod t wwl t dwwth t dstwt t dstwth t hstwt t hwwt t dawt t dwtw t hstla t far t dwtid t dwwtl t hwod t daw t dstod t sodwr hi-z hi-z hi-z wr (output) higher address higher address a0 to a7 (output) lower address lower address data (output) lower address (output) lower address (output)
data sheet u14121ej2v0ds00 85 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay serial operation (1) 3-wire serial i/o mode (2) uart mode (3) i 2 c bus mode ( m m m m pd784216ay/784218ay subseries only) sck si/so t kcy1, 2 t kl1, 2 t kh1, 2 t kso1, 2 t sik1, 2 t ksi1, 2 asck t kcy3 t kh3 t kl3 scl0 sda0 t r t hd : dat t hd : sta t buf t high t su : dat t f t su : sta t hd : sta t sp t su : sto stop condition start condition restart condition stop condition
data sheet u14121ej2v0ds00 86 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay clock output timing interrupt input timing reset input timing clkout t clh t cll t cycl t clf t clr nmi intp0 to intp6 t wnih t wnil t with t witl reset t wrsh t wrsl
data sheet u14121ej2v0ds00 87 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay clock timing data retention characteristics x1 t wxh t wxl 1/f x t xf t xr xt1 t xth t xtl 1/f xt v dd reset nmi (cleared by falling edge) nmi (cleared by rising edge) t hvd t fvd t rvd t drel v dddr stop mode setting t wait
data sheet u14121ej2v0ds00 88 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 14. package drawings remark the external dimensions and material of the es version are the same as those of the mass-produced version. 100-pin plastic lqfp (fine pitch) (14x14) note each lead centerline is located within 0.08 mm of its true position (t.p.) at maximum material condition. item millimeters a b d g 16.00 0.20 14.00 0.20 0.50 (t.p.) 1.00 j 16.00 0.20 k c 14.00 0.20 i 0.08 1.00 0.20 l 0.50 0.20 f 1.00 n p q 0.08 1.40 0.05 0.10 0.05 s100gc-50-8eu, 8ea-2 s 1.60 max. h 0.22 + 0.05 - 0.04 m 0.17 + 0.03 - 0.07 r3 + 7 - 3 1 25 26 50 100 76 75 51 s s n j detail of lead end c d a b r k m l p i s q g f m h
data sheet u14121ej2v0ds00 89 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay remark the external dimensions and material of the es version are the same as those of the mass-produced version. 80 81 50 100 1 31 30 51 100-pin plastic qfp (14x20) hi j detail of lead end m q r k m l p s s n g f note each lead centerline is located within 0.15 mm of its true position (t.p.) at maximum material condition. item millimeters a b d g 23.6 0.4 20.0 0.2 0.30 0.10 0.6 h 17.6 0.4 i c 14.0 0.2 0.15 j 0.65 (t.p.) k 1.8 0.2 l 0.8 0.2 f 0.8 p100gf-65-3ba1-4 n p q 0.10 2.7 0.1 0.1 0.1 r5 5 s 3.0 max. m 0.15 + 0.10 - 0.05 c d a b s
data sheet u14121ej2v0ds00 90 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay 15. recommended soldering conditions the m pd784218a should be soldered and mounted under the following recommended conditions. for the details of the recommended soldering conditions, refer to the document semiconductor device mounting technology manual (c10535e) . for soldering methods and conditions other than those recommended below, contact your nec sales representative. table 15-1. surface mounting type soldering conditions (1/2) (1) m m m m pd784214agc- -8eu:100-pin plastic lqfp(fine pitch) (14 14 mm) m m m m pd784215agc- -8eu:100-pin plastic lqfp(fine pitch) (14 14 mm) m m m m pd784216agc- -8eu:100-pin plastic lqfp(fine pitch) (14 14 mm) m m m m pd784217agc- -8eu: 100-pin plastic lqfp (fine pitch) (14 14 mm) m m m m pd784218agc- -8eu: 100-pin plastic lqfp (fine pitch) (14 14 mm) m m m m pd784214aygc- -8eu:100-pin plastic lqfp(fine pitch) (14 14 mm) m m m m pd784215aygc- -8eu:100-pin plastic lqfp(fine pitch) (14 14 mm) m m m m pd784216aygc- -8eu:100-pin plastic lqfp(fine pitch) (14 14 mm) m m m m pd784217aygc- -8eu: 100-pin plastic lqfp (fine pitch) (14 14 mm) m m m m pd784218aygc- -8eu: 100-pin plastic lqfp (fine pitch) (14 14 mm) soldering method soldering conditions recommended condition symbol infrared reflow package peak temperature: 235 c, time: 30 seconds max. (at 210 c or higher), count: two times or less, exposure limit: 7 days note (after that, prebake at 125 c for 10 hours) ir35-107-2 vps package peak temperature: 215 c, time: 40 seconds max. (at 200 c or higher), count: two times or less, exposure limit: 7 days note (after that, prebake at 125 c for 10 hours) vp15-107-2 partial heating pin temperature: 300 c max., time: 3 seconds max. (per pin row) - note after opening the dry pack, store it at 25 c or less and 65% rh or less for the allowable storage period. caution do not use different soldering methods together (except for partial heating).
data sheet u14121ej2v0ds00 91 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay table 15-1. surface mounting type soldering conditions (2/2) (2) m m m m pd784214agf- -3ba:100-pin plastic qfp(14 20 mm) m m m m pd784215agf- -3ba:100-pin plastic qfp(14 20 mm) m m m m pd784216agf- -3ba:100-pin plastic qfp(14 20 mm) m m m m pd784217agf- -3ba: 100-pin plastic qfp (14 20 mm) m m m m pd784218agf- -3ba: 100-pin plastic qfp (14 20 mm) m m m m pd784214aygf- -3ba:100-pin plastic qfp(14 20 mm) m m m m pd784215aygf- -3ba:100-pin plastic qfp(14 20 mm) m m m m pd784216aygf- -3ba:100-pin plastic qfp(14 20 mm) m m m m pd784217aygf- -3ba: 100-pin plastic qfp (14 20 mm) m m m m pd784218aygf- -3ba: 100-pin plastic qfp (14 20 mm) soldering method soldering conditions recommended condition symbol infrared reflow package peak temperature: 235 c, time: 30 seconds max. (at 210 c or higher), count: two times or less ir35-00-2 vps package peak temperature: 215 c, time: 40 seconds max. (at 200 c or higher), count: two times or less vp15-00-2 wave soldering solder bath temperature: 260 c max., time: 10 seconds max., count: once, preheating temperature: 120 c max. (package surface temperature) ws60-00-1 partial heating pin temperature: 300 c max., time: 3 seconds max. (per pin row) - caution do not use different soldering methods together (except for partial heating).
data sheet u14121ej2v0ds00 92 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay appendix a. development tools the following development tools are available for system development using the m pd784218a. also refer to (5) cautions on using development tools . (1) language processing software ra78k4 assembler package common to 78k/iv series cc78k4 c compiler package common to 78k/iv series df784218 device file common to m pd784216a, 784216ay, 784218a, 784218ay subseries cc78k4-l c compiler library source file common to 78k/iv series (2) flash memory writing tools flashpro ii (model number: fl-pr2), flashpro iii (model number: fl-pr3, pg-fp3) dedicated flash programmer for microcontroller incorporating flash memory fa-100gf adapter for writing 100-pin plastic qfp (gf-3ba type) flash memory. connection must be performed in accordance with the target product. fa-100gc adapter for writing 100-pin plastic lqfp (gc-8eu type) flash memory. connection must be performed in accordance with the target product. flashpro ii controller, flashpro iii controller control program that runs on a personal computer and is attached to flashpro ii, flashpro iii. operates on windows tm 95, etc. (3) debugging tools when ie-78k4-ns in-circuit emulator is used ie-78k4-ns in-circuit emulator common to 78k/iv series ie-70000-mc-ps-b power supply unit for ie-78k4-ns ie-70000-98-if-c interface adapter required when pc-9800 series pc (except notebook type) is used as host machine (c bus supported) ie-70000-cd-if-a pc card and cable when pc-9800 series notebook pc is used as host machine (pcmcia socket supported) ie-70000-pc-if-c interface adapter required when using ibm pc/at tm compatibles as host machine (isa bus supported) ie-70000-pci-if interface adapter required when using pc that incorporates pci bus as host machine ie-784225-ns-em1 emulation board to emulate m pd784216a, 784216ay, 784218a, 784218ay subseries np-100gf emulation probe for 100-pin plastic qfp (gf-3ba type) np-100gc emulation probe for 100-pin plastic lqfp (gc-8eu type) ev-9200gf-100 socket to be mounted on a target system board made for 100-pin plastic qfp (gf-3ba type) tgc-100sdw conversion adapter to connect the np-100gc and a target system board on which a 100-pin plastic lqfp (gc-8eu type) can be mounted id78k4-ns integrated debugger for ie-78k4-ns sm78k4 system simulator common to 78k/iv series df784218 device file common to m pd784216a, 784216ay, 784218a, 784218ay subseries
data sheet u14121ej2v0ds00 93 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay when ie-784000-r in-circuit emulator is used ie-784000-r in-circuit emulator common to 78k/iv series ie-70000-98-if-c interface adapter required when pc-9800 series pc (except notebook type) is used as host machine (c bus supported) ie-70000-pc-if-c interface adapter required when using ibm pc/at and compatibles as host machine (isa bus supported) ie-70000-pci-if interface adapter required when using pc that incorporates pci bus as host machine ie-78000-r-sv3 interface adapter and cable required when ews is used as host machine ie-784225-ns-em1 emulation board to emulate m pd784216a, 784216ay, 784218a, 784218ay subseries ie-784000-r-em emulation board common to 78k/iv series ie-78k4-r-ex3 emulation probe conversion board required when using ie-784225-ns-em1 on ie-784000-r. ep-784218gf-r emulation probe for 100-pin plastic qfp (gf-3ba type) ep-78064gc-r emulation probe for 100-pin plastic lqfp (gc-8eu type) ev-9200gf-100 socket to be mounted on a target system board made for 100-pin plastic qfp (gf-3ba type) tgc-100sdw conversion adapter to connect the ep-78064gc-r and a target system board on which a 100-pin plastic lqfp (gc-8eu type) can be mounted id78k4 integrated debugger for ie-784000-r sm78k4 system simulator common to 78k/iv series df784218 device file common to m pd784216a, 784216ay, 784218a, 784218ay subseries (4) real-time os rx78k/iv real-time os for 78k/iv series mx78k4 os for 78k/iv series
data sheet u14121ej2v0ds00 94 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay (5) cautions on using development tools the id78k4-ns, id78k4, and sm78k4 are used in combination with the df784218. the cc78k4 and rx78k/iv are used in combination with the ra78k4 and df784218. the fl-pr2, fl-pr3, fa-100gf, fa-100gc, np-100gf, and np-100gc are products made by naito densei machida mfg. co., ltd. (tel: +81-44-822-3813). the tgc-100sdw is a product made by tokyo eletech corporation. for further information, contact daimaru kogyo, ltd. tokyo electronic division (tel: +81-3-3820-7112) osaka electronic division (tel: +81-6-6244-6672) for third party development tools, see the single-chip microcontroller development tool selection guide (u11069e). the host machine and os suitable for each software are as follows: pc ews host machine [os] software pc-9800 series [windows] ibm pc/at and compatibles [japanese/english windows] hp9000 series 700 tm [hp-ux tm ] sparcstation tm [sunos tm , solaris tm ] news tm (risc) [news-os tm ] ra78k4 ? note ? cc78k4 ? note ? id78k4-ns ?- id78k4 ?? sm78k4 ?- rx78k/iv ? note ? mx78k4 ? note ? note dos-based software
data sheet u14121ej2v0ds00 95 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay appendix b. related documents documents related to devices document no. document name english japanese m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay data sheet this document u14121j m pd78f4216a, 78f4216ay, 78f4218a, 78f4218ay data sheet to be prepared to be prepared m pd784216a, 784216ay subseries users manual hardware u13570e u13570j m pd784218a, 784218ay subseries users manual hardware u12970e u12970j 78k/iv series users manual instructions u10905e u10905j 78k/iv series instruction table - u10594j 78k/iv series instruction set - u10595j 78k/iv series application note software basics - u10095j documents related to development tools (users manuals) document no. document name english japanese language u11162e u11162j ra78k4 assembler package operation u11334e u11334j ra78k structured assembler preprocessor u11743e u11743j language u11571e u11571j cc78k4 c compiler operation u11572e u11572j ie-78k4-ns u13356e u13356j ie-784000-r u12903e u12903j ie-784218-r-em1 u12155e u12155j ie-784225-ns-em1 u13742e u13742j ep-78064 eeu-1469 eeu-934 sm78k4 system simulator windows based reference u10093e u10093j sm78k series system simulator external part user open interface specifications u10092e u10092j id78k4-ns integrated debugger pc based reference u12796e u12796j id78k4 integrated debugger windows based reference u10440e u10440j id78k4 integrated debugger hp-ux, sunos, news-os based reference u11960e u11960j caution the related documents listed above are subject to change without notice. be sure to use the latest version of each document for designing.
data sheet u14121ej2v0ds00 96 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay documents related to embedded software (user?s manuals) document no. document name english japanese fundamental u10603e u10603j installation u10604e u10604j 78k/iv series real-time os debugger - u10364j 78k/iv series os mx78k4 fundamental - u11779j other documents document no. document name english japanese semiconductor selection guide products & packages (cd-rom) x13769x semiconductor device mounting technology manual c10535e c10535j quality grades on nec semiconductor devices c11531e c11531j nec semiconductor device reliability/quality control system c10983e c10983j guide to prevent damage for semiconductor devices by electrostatic discharge (esd) c11892e c11892j guide to microcomputer-related products by third party - u11416j caution the related documents listed above are subject to change without notice. be sure to use the latest version of each document for designing.
data sheet u14121ej2v0ds00 97 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay notes for cmos devices 1 precaution against esd for semiconductors note: strong electric field, when exposed to a mos device, can cause destruction of the gate oxide and ultimately degrade the device operation. steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. environmental control must be adequate. when it is dry, humidifier should be used. it is recommended to avoid using insulators that easily build static electricity. semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. all test and measurement tools including work bench and floor should be grounded. the operator should be grounded using wrist strap. semiconductor devices must not be touched with bare hands. similar precautions need to be taken for pw boards with semiconductor devices on it. 2 handling of unused input pins for cmos note: no connection for cmos device inputs can be cause of malfunction. if no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. cmos devices behave differently than bipolar or nmos devices. input levels of cmos devices must be fixed high or low by using a pull-up or pull-down circuitry. each unused pin should be connected to v dd or gnd with a resistor, if it is considered to have a possibility of being an output pin. all handling related to the unused pins must be judged device by device and related specifications governing the devices. 3 status before initialization of mos devices note: power-on does not necessarily define initial status of mos device. production process of mos does not define the initial operation status of the device. immediately after the power source is turned on, the devices with reset function have not yet been initialized. hence, power-on does not guarantee out-pin levels, i/o settings or contents of registers. device is not initialized until the reset signal is received. reset operation must be executed immediately after power-on for devices having reset function.
data sheet u14121ej2v0ds00 98 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay regional information some information contained in this document may vary from country to country. before using any nec product in your application, piease contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: device availability ordering information product release schedule availability of related technical literature development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. nec electronics inc. (u.s.) santa clara, california tel: 408-588-6000 800-366-9782 fax: 408-588-6130 800-729-9288 nec electronics (germany) gmbh duesseldorf, germany tel: 0211-65 03 02 fax: 0211-65 03 490 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.l. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics (germany) gmbh benelux office eindhoven, the netherlands tel: 040-2445845 fax: 040-2444580 nec electronics (france) s.a. velizy-villacoublay, france tel: 01-30-67 58 00 fax: 01-30-67 58 99 nec electronics (france) s.a. madrid office madrid, spain tel: 91-504-2787 fax: 91-504-2860 nec electronics (germany) gmbh scandinavia office taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. united square, singapore tel: 65-253-8311 fax: 65-250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-2719-2377 fax: 02-2719-5951 nec do brasil s.a. electron devices division guarulhos-sp brasil tel: 55-11-6462-6810 fax: 55-11-6462-6829 j00.7
data sheet u14121ej2v0ds00 99 m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay iebus is a trademark of nec corporation. windows is either a registered trademark or a trademark of microsoft corporation in the united states and/or other countries. pc/at is a trademark of international business machines corporation. hp9000 series 700 and hp-ux are trademarks of hewlett-packard company. sparcstation is a trademark of sparc international, inc. solaris and sunos are trademarks of sun microsystems, inc. news and news-os are trademarks of sony corporation.
m m m m pd784214a, 784215a, 784216a, 784217a, 784218a, 784214ay, 784215ay, 784216ay, 784217ay, 784218ay the related documents indicated in this publication may include preliminary versions. however, preliminary versions are not marked as such. purchase of nec i 2 c components conveys a license under the philips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. m8e 00. 4 the information in this document is current as of august, 2000. the information is subject to change without notice. for actual design-in, refer to the latest publications of nec's data sheets or data books, etc., for the most up-to-date specifications of nec semiconductor products. not all products and/or types are available in every country. please check with an nec sales representative for availability and additional information. no part of this document may be copied or reproduced in any form or by any means without prior written consent of nec. nec assumes no responsibility for any errors that may appear in this document. nec does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of nec semiconductor products listed in this document or any other liability arising from the use of such products. no license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec or others. descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. the incorporation of these circuits, software and information in the design of customer's equipment shall be done under the full responsibility of customer. nec assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. while nec endeavours to enhance the quality, reliability and safety of nec semiconductor products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. to minimize risks of damage to property or injury (including death) to persons arising from defects in nec semiconductor products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment, and anti-failure features. nec semiconductor products are classified into the following three quality grades: "standard", "special" and "specific". the "specific" quality grade applies only to semiconductor products developed based on a customer-designated "quality assurance program" for a specific application. the recommended applications of a semiconductor product depend on its quality grade, as indicated below. customers must check the quality grade of each semiconductor product before using it in a particular application. "standard": computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots "special": transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) "specific": aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc. the quality grade of nec semiconductor products is "standard" unless otherwise expressly specified in nec's data sheets or data books, etc. if customers wish to use nec semiconductor products in applications not intended by nec, they must contact an nec sales representative in advance to determine nec's willingness to support a given application. (note) (1) "nec" as used in this statement means nec corporation and also includes its majority-owned subsidiaries. (2) "nec semiconductor products" means any semiconductor product developed or manufactured by or for nec (as defined above). the export of this product from japan is regulated by the japanese government. to export this product may be prohibited without governmental license, the need for which must be judged by the customer. the export or re-export of this product from a country other than japan may also be prohibited without a license from that country. please call an nec sales representative.


▲Up To Search▲   

 
Price & Availability of UPD784216AY

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X